summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenys Vlasenko2020-12-12 08:44:32 +0100
committerDenys Vlasenko2020-12-12 08:44:32 +0100
commitef2366cdca45941f943f4970ac57a4008181fca9 (patch)
tree02f1626637bd34697b2b380e80a0aebc78996f84 /findutils
parent030fe31760169783537162b83af89e551bf120f6 (diff)
downloadbusybox-ef2366cdca45941f943f4970ac57a4008181fca9.zip
busybox-ef2366cdca45941f943f4970ac57a4008181fca9.tar.gz
nsenter: stop option parsing on 1st non-option
"nsenter ls -l" gives: invalid option -- 'l' Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c
index a8c3fa3..34e11ae 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -1522,7 +1522,7 @@ int find_main(int argc UNUSED_PARAM, char **argv)
}
*past_HLP = NULL;
/* "+": stop on first non-option */
- i = getopt32(argv, "+HLP");
+ i = getopt32(argv, "+""HLP");
if (i & (1<<0))
G.recurse_flags |= ACTION_FOLLOWLINKS_L0 | ACTION_DANGLING_OK;
if (i & (1<<1))