aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-04 09:08:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-04 09:08:42 +0000
commitf1415de54f56333f1cb117374537a4f6d7a37b2a (patch)
treeebf44220ef6fae7f63b11f71be3258e169acc25d /main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch
parent0c4ce88e409644cc1af6fe0e943fd04e3f0fee56 (diff)
downloadaports-f1415de54f56333f1cb117374537a4f6d7a37b2a.tar.bz2
aports-f1415de54f56333f1cb117374537a4f6d7a37b2a.tar.xz
main/nfs-utils: fix statd
Diffstat (limited to 'main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch')
-rw-r--r--main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch b/main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch
new file mode 100644
index 0000000000..d3c0403654
--- /dev/null
+++ b/main/nfs-utils/0001-statd-Fix-test-for-foreground-mode.patch
@@ -0,0 +1,30 @@
+From 17a3e5bffb7110d46de1bf42b64b90713ff5ea50 Mon Sep 17 00:00:00 2001
+From: Chris Mayo <aklhfex@gmail.com>
+Date: Sun, 1 Feb 2015 12:03:46 -0500
+Subject: [PATCH] statd: Fix test for foreground mode
+
+daemon_init parameter has the opposite sense
+to code removed in commit 7addf9d
+
+Signed-off-by: Chris Mayo <aklhfex@gmail.com>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+ utils/statd/statd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/utils/statd/statd.c b/utils/statd/statd.c
+index 60ce6d1..2b7a167 100644
+--- a/utils/statd/statd.c
++++ b/utils/statd/statd.c
+@@ -393,7 +393,7 @@ int main (int argc, char **argv)
+ simulator (--argc, ++argv); /* simulator() does exit() */
+ #endif
+
+- daemon_init(!(run_mode & MODE_NODAEMON));
++ daemon_init((run_mode & MODE_NODAEMON));
+
+ if (run_mode & MODE_LOG_STDERR) {
+ xlog_syslog(0);
+--
+2.3.7
+