diff options
author | Anj Duvnjak <alvind11@hotmail.com> | 2022-10-20 20:47:44 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-20 20:47:44 +0700 |
commit | 7d00fa1dbe8a6d6b4ed8042a6f78011794068e0b (patch) | |
tree | f6cba8881a7959c6b31fc20446bd57e4f46515b3 /network/ifplugd/ifplugd-fix-return-value.patch | |
parent | 3d9b729316604b7c0b1312ce0f9b24d3d5bd2dea (diff) | |
download | slackbuilds-7d00fa1dbe8a6d6b4ed8042a6f78011794068e0b.tar.gz |
network/ifplugd: Added (Network Daemon).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ifplugd/ifplugd-fix-return-value.patch')
-rw-r--r-- | network/ifplugd/ifplugd-fix-return-value.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/ifplugd/ifplugd-fix-return-value.patch b/network/ifplugd/ifplugd-fix-return-value.patch new file mode 100644 index 0000000000..1b7d04af63 --- /dev/null +++ b/network/ifplugd/ifplugd-fix-return-value.patch @@ -0,0 +1,12 @@ +diff -Nur ifplugd-0.28.orig/src/ifplugd.c ifplugd-0.28/src/ifplugd.c +--- ifplugd-0.28.orig/src/ifplugd.c 2005-06-04 21:21:51.000000000 +0200 ++++ ifplugd-0.28/src/ifplugd.c 2012-08-29 21:51:53.137644163 +0200 +@@ -447,7 +447,7 @@ + goto finish; + + if (send_retval && daemonize && wait_on_fork) { +- char c = status == IFSTATUS_UP ? 2 : (status == IFSTATUS_DOWN ? 3 : 1); ++ char c = status == IFSTATUS_UP ? 1 : (status == IFSTATUS_DOWN ? 2 : 3); + daemon_retval_send(c); + send_retval = 0; + } |