[LON-CAPA-cvs] cvs: loncom / lcnfsoff
foxr
foxr@source.lon-capa.org
Tue, 12 Oct 2010 10:19:18 -0000
foxr Tue Oct 12 10:19:18 2010 EDT
Modified files:
/loncom lcnfsoff
Log:
Make this usable on FC13
Index: loncom/lcnfsoff
diff -u loncom/lcnfsoff:1.3 loncom/lcnfsoff:1.4
--- loncom/lcnfsoff:1.3 Wed Aug 22 19:53:22 2007
+++ loncom/lcnfsoff Tue Oct 12 10:19:18 2010
@@ -2,7 +2,7 @@
use strict;
-# $Id: lcnfsoff,v 1.3 2007/08/22 19:53:22 albertel Exp $
+# $Id: lcnfsoff,v 1.4 2010/10/12 10:19:18 foxr Exp $
# This script is a setuid script (chmod 6755; chown root:root).
# It disables nfs/portmap services for a specific user at
@@ -39,7 +39,7 @@
print("User ID mismatch. This program must be run as user 'www'\n") unless $noprint;
exit 1;
}
-&disable_root_capability;
+
# Handle case of another lcnfs process
unless (&try_to_lock("/tmp/lock_lcnfs")) {