From ef2366cdca45941f943f4970ac57a4008181fca9 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 12 Dec 2020 08:44:32 +0100 Subject: nsenter: stop option parsing on 1st non-option "nsenter ls -l" gives: invalid option -- 'l' Signed-off-by: Denys Vlasenko --- findutils/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findutils/find.c') diff --git a/findutils/find.c b/findutils/find.c index a8c3fa346..34e11ae26 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)) -- cgit v1.2.3