try to read limits from dir only, when '--dir' was used
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 5 Mar 2004 19:51:15 +0000 (19:51 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 5 Mar 2004 19:51:15 +0000 (19:51 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1113 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vlimit.c

index 3aba2b7..3c99493 100644 (file)
@@ -391,7 +391,9 @@ int main (int argc, char *argv[])
   if (ctx==VC_NOCTX)
     ctx = Evc_get_task_xid(0);
 
-  readFromDir(limits, &lim_mask, dir, missing_ok);
+  if (dir)
+    readFromDir(limits, &lim_mask, dir, missing_ok);
+
   setLimits(ctx, limits, lim_mask);
   if (show_all) showAll(ctx);