X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fchroot-sh.c;h=1dc696ab9c01673d616b063b03d932bafea53b0b;hb=effa822abc0d4375e6c63bede99ab19e61ad21ce;hp=b26eb93c7cf79a9765a854179533a5865fcec247;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/src/chroot-sh.c b/src/chroot-sh.c index b26eb93..1dc696a 100644 --- a/src/chroot-sh.c +++ b/src/chroot-sh.c @@ -28,7 +28,7 @@ #include #include -#define ENSC_WRAPPERS_PREFIX "chroot-sh" +#define ENSC_WRAPPERS_PREFIX "chroot-sh: " #define ENSC_WRAPPERS_UNISTD 1 #define ENSC_WRAPPERS_IO 1 #define ENSC_WRAPPERS_FCNTL 1 @@ -142,6 +142,73 @@ execTestFile(int argc, char *argv[]) return res!=-1 && S_ISREG(res) ? EXIT_SUCCESS : EXIT_FAILURE; } +static int +execMkdir(int argc, char *argv[]) +{ + int i = 1; + int res = EXIT_SUCCESS; + + if (argc<2) { + WRITE_MSG(2, "No files specified for 'mkdir' operation; try '--help' for more information\n"); + return wrapper_exit_code; + } + + for (;i ... appends stdin to which is created when needed\n" " truncate ... clear and fill it with stdin; the is\n" " created when needed\n" - " rm + ... unlink the given files\n\n" + " rm + ... unlink the given files\n" + " mkdir + ... create the given directories\n" + " chmod +\n" + " ... change access permissions of files\n" + " link dst> ... create a symbolic link from to \n\n" "Please report bugs to " PACKAGE_BUGREPORT "\n"); exit(0); }