Package: nfs-common
Version: 1:1.1.1~git-20
Severity: normal

In /etc/init.d/nfs-common, the test in line 66 may not report a working
/etc/exports file, thus disabling the spawning of an idmapd in case the
/etc/default/nfs-common variable NEED_IDMAPD is not set. It could cause
problems for NFSv4 mounts.

More precisely, to be reported, the current test requires that there are
lines which begin with a space, which lets think the mistake is a typo.

I suggest applying the following patch :

--- /etc/init.d/nfs-common.saved        2007-09-26 14:41:32.000000000 +0200
+++ /etc/init.d/nfs-common      2007-09-26 15:10:11.000000000 +0200
@@ -63,7 +63,7 @@ fi
 # condition in nfs-kernel-server's init script does, which has a value in
 # itself.
 #
-if [ -f /etc/exports ] && grep -q '^ .*/' /etc/exports; then
+if [ -f /etc/exports ] && grep -q '^[[:space:]]*[^#]*/' /etc/exports; then
     AUTO_NEED_IDMAPD=yes
 fi




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to