do not provide the ioctl-functions anymore; use them only internally
[util-vserver.git] / util-vserver / src / lsxid.c
index d6bd531..5388f1a 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);
 }
@@ -72,7 +73,7 @@ showVersion()
 }
 
 void
-checkParams(struct Arguments const UNUSED * args, int UNUSED argc)
+fixupParams(struct Arguments UNUSED * args, int UNUSED argc)
 {
 }
 
@@ -109,7 +110,7 @@ handleFile(char const *name, char const *display_name,
 
   memset(buf, ' ', sizeof buf);
 
-  if (S_ISLNK(exp_st->st_mode)) {
+  if (!S_ISREG(exp_st->st_mode)) {
     memcpy(buf, "-------", 7);
     write(1, buf, sizeof buf);
     need_write = false;