summaryrefslogtreecommitdiff
path: root/coreutils/mkdir.c
diff options
context:
space:
mode:
authorSimon B2012-05-06 15:03:32 +0200
committerDenys Vlasenko2012-05-06 15:03:32 +0200
commit3698ed1ca1a00c2460e3b167e4a243a4021c6f62 (patch)
treeb62f44f251a74adfc848f6f263699403b44387ef /coreutils/mkdir.c
parent8c3439554aa6e9da90246955e00b69c690b52794 (diff)
downloadbusybox-3698ed1ca1a00c2460e3b167e4a243a4021c6f62.zip
busybox-3698ed1ca1a00c2460e3b167e4a243a4021c6f62.tar.gz
mkdir,rmdir: accept and ignore -v, --verbose
function old new delta static.rmdir_longopts 38 48 +10 mkdir_longopts 18 28 +10 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r--coreutils/mkdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c
index b33b6bb..4a8e43e 100644
--- a/coreutils/mkdir.c
+++ b/coreutils/mkdir.c
@@ -48,6 +48,7 @@ static const char mkdir_longopts[] ALIGN1 =
#if ENABLE_SELINUX
"context\0" Required_argument "Z"
#endif
+ "verbose\0" No_argument "v"
;
#endif
@@ -66,7 +67,7 @@ int mkdir_main(int argc UNUSED_PARAM, char **argv)
#if ENABLE_FEATURE_MKDIR_LONG_OPTIONS
applet_long_options = mkdir_longopts;
#endif
- opt = getopt32(argv, "m:p" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext));
+ opt = getopt32(argv, "m:p" IF_SELINUX("Z:") "v", &smode IF_SELINUX(,&scontext));
if (opt & 1) {
mode_t mmode = 0777;
if (!bb_parse_mode(smode, &mmode)) {