allow '--!...' syntax too
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 5 Mar 2004 19:50:45 +0000 (19:50 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 5 Mar 2004 19:50:45 +0000 (19:50 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1112 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/setattr.c

index 4b7acee..4513ac9 100644 (file)
@@ -44,13 +44,20 @@ CMDLINE_OPTIONS[] = {
   { "hide",        no_argument, 0, CMD_HIDE  },
   { "barrier",     no_argument, 0, CMD_BARRIER },
   { "~iunlink",    no_argument, 0, CMD_UNSET_IMMU  },
+  { "!iunlink",    no_argument, 0, CMD_UNSET_IMMU  },
   { "~immu",       no_argument, 0, CMD_UNSET_IMMU  },
+  { "!immu",       no_argument, 0, CMD_UNSET_IMMU  },
   { "~admin",      no_argument, 0, CMD_UNSET_ADMIN },
+  { "!admin",      no_argument, 0, CMD_UNSET_ADMIN },
   { "~watch",      no_argument, 0, CMD_UNSET_WATCH },
+  { "!watch",      no_argument, 0, CMD_UNSET_WATCH },
   { "~hide",       no_argument, 0, CMD_UNSET_HIDE  },
+  { "!hide",       no_argument, 0, CMD_UNSET_HIDE  },
   { "~barrier",    no_argument, 0, CMD_UNSET_BARRIER },
+  { "!barrier",    no_argument, 0, CMD_UNSET_BARRIER },
   { "iunlink-but-not-immutable",   no_argument, 0, CMD_IMMUX },
   { "~iunlink-but-not-immutable",  no_argument, 0, CMD_UNSET_IMMUX },
+  { "!iunlink-but-not-immutable",  no_argument, 0, CMD_UNSET_IMMUX },
   { 0,0,0,0 }
 };