added and documented '-x' switch
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 14 Jan 2004 02:30:25 +0000 (02:30 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 14 Jan 2004 02:30:25 +0000 (02:30 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@598 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/chxid.c
util-vserver/src/lsxid.c
util-vserver/src/setattr.c
util-vserver/src/showattr.c

index 1af6c53..42bdd17 100644 (file)
@@ -38,7 +38,7 @@ CMDLINE_OPTIONS[] = {
   { 0,0,0,0 }
 };
 
-char const             CMDLINE_OPTIONS_SHORT[] = "Rc:";
+char const             CMDLINE_OPTIONS_SHORT[] = "Rc:x";
 
 void
 showHelp(int fd, char const *cmd, int res)
@@ -46,10 +46,11 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " -c <ctx|vserver> [-R] [--] <file>+\n\n"
+           " -c <ctx|vserver> [-Rx] [--] <file>+\n\n"
            " Options:\n"
            "   -R  ...  recurse through directories\n"
            "   -c  ...  assign the given context/vserver to the file(s)\n"
+           "   -x  ...  do not cross filesystems\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }
index cc7cd18..38d4c83 100644 (file)
@@ -41,7 +41,7 @@ CMDLINE_OPTIONS[] = {
   { 0,0,0,0 }
 };
 
-char const             CMDLINE_OPTIONS_SHORT[] = "Radn";
+char const             CMDLINE_OPTIONS_SHORT[] = "Radnx";
 
 void
 showHelp(int fd, char const *cmd, int res)
@@ -49,13 +49,14 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " [-Radn] [--] <file>*\n\n"
+           " [-Radnx] [--] <file>*\n\n"
            " Options:\n"
            "   -R  ...  recurse through directories\n"
            "   -a  ...  display files starting with '.' also\n"
            "   -d  ...  list directories like other files instead of\n"
            "            listing their content\n"
            "   -n  ...  do not try to do xid -> vserver-name mapping\n"
+           "   -x  ...  do not cross filesystems\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }
index 74de450..959c086 100644 (file)
@@ -42,7 +42,7 @@ CMDLINE_OPTIONS[] = {
   { 0,0,0,0 }
 };
 
-char const             CMDLINE_OPTIONS_SHORT[] = "Rsu";
+char const             CMDLINE_OPTIONS_SHORT[] = "Rsux";
 
 static long    set_mask = 0;
 static long    del_mask = VC_IMMUTABLE_ALL;
@@ -53,12 +53,13 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " [-Rsu] [--immutable] [--immulink] [--] <file>+\n\n"
+           " [-Rsux] [--immutable] [--immulink] [--] <file>+\n\n"
            " Options:\n"
            "   -R  ...  recurse through directories\n"
            "   -s  ...  set flag only; when only one of the '--immu*' options\n"
            "            is given, do not delete the other ones\n"
            "   -u  ...  revert operation and unset the given flags\n"
+           "   -x  ...  do not cross filesystems\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }
index cf68304..e7db359 100644 (file)
@@ -43,7 +43,7 @@ CMDLINE_OPTIONS[] = {
   { 0,0,0,0 }
 };
 
-char const             CMDLINE_OPTIONS_SHORT[] = "Rad";
+char const             CMDLINE_OPTIONS_SHORT[] = "Radx";
 
 void
 showHelp(int fd, char const *cmd, int res)
@@ -51,12 +51,13 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " [-Rad] [--] <file>*\n\n"
+           " [-Radx] [--] <file>*\n\n"
            " Options:\n"
            "   -R  ...  recurse through directories\n"
            "   -a  ...  display files starting with '.' also\n"
            "   -d  ...  list directories like other files instead of listing\n"
            "            their content\n"
+           "   -x  ...  do not cross filesystems\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }