Package: nfs-kernel-server
Version: 1:1.0.6-3.1
Tags: patch

To export directories containing spaces you need to qoute them (else exportfs 
uses the second part of the directory as options). If I export only shares 
which are qouted /etc/init.d/nfs-kernel-server says "Not starting 
nfs-kernel-server: No exports.".

The init-script uses grep to determine if exports are definied and to decide 
if the server should be started. The regular expression doesn't care about 
qoutes.

Attached you'll find a small patch fixing this.

Greetings
Ingo Steuwer


-- 
Ingo Steuwer       [EMAIL PROTECTED]         fon: +49 421 22 232- 0
Entwicklung        Linux for Your Business
Univention GmbH    http://www.univention.de/     fax: +49 421 22 232-99
--- nfs-utils-1.0.7.orig/debian/nfs-kernel-server.init	Sat Dec  4 22:39:05 2004
+++ nfs-utils-1.0.7/debian/nfs-kernel-server.init	Wed Nov  9 09:01:03 2005
@@ -55,7 +55,7 @@
 case "$1" in
   start)
 	cd /	# daemons should have root dir as cwd
-	if grep -q '^/' /etc/exports
+	if egrep -q '^["]{0,1}/' /etc/exports
 	then
 		do_modprobe nfsd
 		do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no

Reply via email to