summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch')
-rw-r--r--meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch b/meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch
new file mode 100644
index 000000000..177d8a372
--- /dev/null
+++ b/meta-webserver/recipes-webadmin/webmin/files/exports-lib.pl.patch
@@ -0,0 +1,32 @@
1From 7eba4c98c6953fa6ea76c1620d19524bcfa3a576 Mon Sep 17 00:00:00 2001
2From: Kevin Strasser <kevin.strasser@linux.intel.com>
3Date: Wed, 1 Aug 2012 11:51:26 -0700
4Subject: [PATCH] nfs export: remove nfsd check
5
6nfsd runs as a kernel process and does not have a pid. This means
7that the command assigned to apply_cmd will never be executed when
8the user tries to apply changes to nfs exports.
9
10Upstream-Status: Inappropriate [config]
11
12Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
13---
14 exports/exports-lib.pl | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/exports/exports-lib.pl b/exports/exports-lib.pl
18index 22891c0..1c67494 100755
19--- a/exports/exports-lib.pl
20+++ b/exports/exports-lib.pl
21@@ -273,7 +273,7 @@ return !&has_command("rpc.nfsd") && !&has_command("nfsd") &&
22 sub restart_mountd
23 {
24 # Try exportfs -r first
25-if ($config{'apply_cmd'} && &find_byname("nfsd") && &find_byname("mountd")) {
26+if ($config{'apply_cmd'} && &find_byname("mountd")) {
27 my $out = &backquote_logged("$config{'apply_cmd'} 2>&1 </dev/null");
28 if (!$? && $out !~ /invalid|error|failed/i) {
29 # Looks like it worked!
30--
311.7.9.5
32