Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/files/
Date: Mon, 02 Sep 2019 07:08:49
Message-Id: 1567408093.71ce315b0913d1562f8c7cfb0e018d3f9e39b60e.mattst88@gentoo
1 commit: 71ce315b0913d1562f8c7cfb0e018d3f9e39b60e
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 2 06:07:43 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 2 07:08:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ce315b
7
8 net-fs/nfs-utils: Handle quoted export directories
9
10 exports(5) says
11
12 Blank lines are ignored. A pound sign ("#") introduces a comment
13 to the end of the line. Entries may be continued across newlines
14 using a backslash. If an export name contains spaces it should
15 be quoted using double quotes. You can also specify spaces or
16 other unusual character in the export name using a backslash
17 followed by the character code as three octal digits.
18
19 Thus, allow an optional single double-quote character before the /.
20
21 Closes: https://bugs.gentoo.org/675648
22 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
23
24 net-fs/nfs-utils/files/nfs.initd | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27 diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd
28 index bf599021c9a..59120629be3 100644
29 --- a/net-fs/nfs-utils/files/nfs.initd
30 +++ b/net-fs/nfs-utils/files/nfs.initd
31 @@ -84,7 +84,7 @@ start() {
32 # Exportfs likes to hang if networking isn't working.
33 # If that's the case, then try to kill it so the
34 # bootup process can continue.
35 - if grep -qs '^[[:space:]]*/' /etc/exports /etc/exports.d/*.exports ; then
36 + if grep -qs '^[[:space:]]*"\?/' /etc/exports /etc/exports.d/*.exports ; then
37 ebegin "Exporting NFS directories"
38 ${exportfs} -r &
39 waitfor_exportfs $!