← Commit list

ef2366cdc

Denys Vlasenko
Denys Vlasenko
2020-12-12
SUCCESS Duration: 149s

Subject

nsenter: stop option parsing on 1st non-option

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

findutils/find.c+1 -1
@@ -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))
util-linux/nsenter.c+2 -1
@@ -103,8 +103,9 @@ static const struct namespace_descr ns_list[] = {
};
/*
* Upstream nsenter doesn't support the short option for --preserve-credentials
+ * "+": stop on first non-option
*/
-static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t:+S:+G:+r::w::F";
+static const char opt_str[] ALIGN1 = "+""U::i::u::n::p::m::""t:+S:+G:+r::w::F";
#if ENABLE_LONG_OPTS
static const char nsenter_longopts[] ALIGN1 =