X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fchroot-sh.c;h=123ba874077e1590dadf7ee3e424d13e83a45bc7;hb=9b4dde7b1e69c055de4adc1d9b161895a6a7c067;hp=addb0f94aff9ac9a6ef6bc692b1ab98fd93a695d;hpb=80bc0ef7fae7e957a2acaa5810f9464527a152c7;p=util-vserver.git diff --git a/src/chroot-sh.c b/src/chroot-sh.c index addb0f9..123ba87 100644 --- a/src/chroot-sh.c +++ b/src/chroot-sh.c @@ -142,6 +142,91 @@ 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 ... gives out to stdout\n" - " append ... appends stdin to which is created when needed\n" - " truncate ... clear and fill it with stdin; the is\n" + " cat ... gives out to stdout\n" + " append ... 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" - "Please report bugs to " PACKAGE_BUGREPORT "\n"); + " rm + ... unlink the given files\n" + " mkdir + ... create the given directories\n" + " chmod +\n" + " ... change access permissions of files\n" + " link ... create a symbolic link from to \n" + " mv ... rename to \n" + "\nPlease report bugs to " PACKAGE_BUGREPORT "\n"); exit(0); }