Add option to chxid to skip unified files.
[util-vserver.git] / src / vsched.c
index 162c388..e8e87c9 100644 (file)
@@ -31,6 +31,7 @@
 #include <dirent.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <stddef.h>
 
 #define ENSC_WRAPPERS_PREFIX   "vsched: "
 #define ENSC_WRAPPERS_VSERVER  1
@@ -168,6 +169,8 @@ static void do_dir_entry(struct vc_set_sched *sched, const char *name)
     if (strcmp(name, opt->name) == 0)
       break;
   }
+  if (opt->name == 0)
+    return;
 
   fd = Eopen(name, O_RDONLY, 0);
   len = Eread(fd, buf, sizeof(buf)-1);