2.42.9-1
[arch-packages.git] / ifplugd / trunk / ifplugd-fix-return-value.patch
blob1b7d04af6305bd9e477920cf58c9f1615e33c0d4
1 diff -Nur ifplugd-0.28.orig/src/ifplugd.c ifplugd-0.28/src/ifplugd.c
2 --- ifplugd-0.28.orig/src/ifplugd.c 2005-06-04 21:21:51.000000000 +0200
3 +++ ifplugd-0.28/src/ifplugd.c 2012-08-29 21:51:53.137644163 +0200
4 @@ -447,7 +447,7 @@
5 goto finish;
7 if (send_retval && daemonize && wait_on_fork) {
8 - char c = status == IFSTATUS_UP ? 2 : (status == IFSTATUS_DOWN ? 3 : 1);
9 + char c = status == IFSTATUS_UP ? 1 : (status == IFSTATUS_DOWN ? 2 : 3);
10 daemon_retval_send(c);
11 send_retval = 0;