]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Check for blank exports file (Closes: #673798).
authorLuk Claes <luk@debian.org>
Fri, 25 May 2012 17:31:04 +0000 (19:31 +0200)
committerLuk Claes <luk@debian.org>
Fri, 25 May 2012 17:31:04 +0000 (19:31 +0200)
debian/changelog
debian/nfs-kernel-server.init

index 8c674bf4df9d295acef87661feb6358b00a72328..54eef7c4071e473d1c7847b5d35bbd4d5ad9d7c3 100644 (file)
@@ -2,6 +2,7 @@ nfs-utils (1:1.2.6-1) UNRELEASED; urgency=low
 
   * New upstream version
     - Remove 18-dont-use-PAGE_SIZE.patch: merged upstream.
+  * Check for blank exports file (Closes: #673798).
 
  -- Luk Claes <luk@debian.org>  Fri, 25 May 2012 19:16:54 +0200
 
index 007b0df90333b4df0615638e33809c9cae03dcb7..a5b41370ae9f5b7e51af300798cf450add29b6b1 100644 (file)
@@ -60,7 +60,7 @@ do_mount() {
 # See how we were called.
 case "$1" in
   start)
-       if [ -f /etc/exports ]
+       if [ -f /etc/exports ] && grep -q '^[[:space:]]*[^#]*/' /etc/exports
        then
                do_modprobe nfsd