From 422a50998d184c56158fdbda40b798da91523288 Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Fri, 25 May 2012 19:31:04 +0200 Subject: [PATCH] Check for blank exports file (Closes: #673798). --- debian/changelog | 1 + debian/nfs-kernel-server.init | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8c674bf..54eef7c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 25 May 2012 19:16:54 +0200 diff --git a/debian/nfs-kernel-server.init b/debian/nfs-kernel-server.init index 007b0df..a5b4137 100644 --- a/debian/nfs-kernel-server.init +++ b/debian/nfs-kernel-server.init @@ -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 -- 2.39.5