use Echdir() instead of chdir()
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1981
94cd875c-1c1d-0410-91d2-
eb244daf1a30
#include <signal.h>
#define ENSC_WRAPPERS_FCNTL 1
+#define ENSC_WRAPPERS_UNISTD 1
#include <wrappers.h>
#define MNTPOINT "/etc"
buf[len++] = ':';
len += utilvserver_fmt_uint(buf+len, col_nr);
WRITE_STR(fd, fname);
- write(fd, buf, len);
+ Vwrite(fd, buf, len);
}
case prIGNORE : break;
case prDOIT : {
bool is_rootfs = (strcmp(mnt.dst, "/")==0);
- chdir("/");
+ Echdir("/");
if (( is_rootfs && opt->rootfs==rfsNO) ||
(!is_rootfs && opt->rootfs==rfsONLY)) { /* ignore the entry */ }
else if (!mountSingle(&mnt, opt)) {