prefix option string for getopt with '+' to avoid option reordering
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 10 Mar 2004 02:37:18 +0000 (02:37 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 10 Mar 2004 02:37:18 +0000 (02:37 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1199 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vlimit.c
util-vserver/src/vuname.c

index 1db88e5..dc86ae0 100644 (file)
@@ -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) {
index 0f5d422..64f6832 100644 (file)
@@ -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)