From 2532dfe434a9feb89a8edcd464f2b4d45d30a4fb Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Wed, 10 Mar 2004 02:37:18 +0000 Subject: [PATCH] prefix option string for getopt with '+' to avoid option reordering git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1199 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/vlimit.c | 2 +- util-vserver/src/vuname.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util-vserver/src/vlimit.c b/util-vserver/src/vlimit.c index 1db88e5..dc86ae0 100644 --- a/util-vserver/src/vlimit.c +++ b/util-vserver/src/vlimit.c @@ -336,7 +336,7 @@ int main (int argc, char *argv[]) } while (1) { - int c = getopt_long(argc, argv, "MSHndhvac:", CMDLINE_OPTIONS, 0); + int c = getopt_long(argc, argv, "+MSHndhvac:", CMDLINE_OPTIONS, 0); if (c==-1) break; if (2048<=c && c<2048+32) { diff --git a/util-vserver/src/vuname.c b/util-vserver/src/vuname.c index 0f5d422..64f6832 100644 --- a/util-vserver/src/vuname.c +++ b/util-vserver/src/vuname.c @@ -197,7 +197,7 @@ int main(int argc, char *argv[]) assert(DIM_OF(UTS_MAPPING) == DIM_OF(args.handle_opts)); while (1) { - int c = getopt_long(argc, argv, "gsx:", CMDLINE_OPTIONS, 0); + int c = getopt_long(argc, argv, "+gsx:", CMDLINE_OPTIONS, 0); if (c==-1) break; if (c>=CMD_UTSCONTEXT && c<=CMD_UTSDOMAINNAME) -- 1.8.1.5