summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-21 01:34:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-10-21 01:34:12 +0000
commit2ccd191b76f600d99d4b8ee15bb8fd1d0f2cf616 (patch)
treebcdf199b31a4e75e382591695f6eb7c891397ba2 /package
parentd1c05d734b93897277998645b8b2e16a2da3aefb (diff)
downloadmtk-20170518-2ccd191b76f600d99d4b8ee15bb8fd1d0f2cf616.zip
mtk-20170518-2ccd191b76f600d99d4b8ee15bb8fd1d0f2cf616.tar.gz
mtk-20170518-2ccd191b76f600d99d4b8ee15bb8fd1d0f2cf616.tar.bz2
pppd: fix the exit code in case of authentication failure or other errors
SVN-Revision: 28498
Diffstat (limited to 'package')
-rw-r--r--package/ppp/patches/208-fix_status_code.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/ppp/patches/208-fix_status_code.patch b/package/ppp/patches/208-fix_status_code.patch
new file mode 100644
index 0000000..c512354
--- /dev/null
+++ b/package/ppp/patches/208-fix_status_code.patch
@@ -0,0 +1,12 @@
+--- a/pppd/main.c
++++ b/pppd/main.c
+@@ -1048,7 +1048,8 @@ get_input()
+ }
+ notice("Modem hangup");
+ hungup = 1;
+- status = EXIT_HANGUP;
++ if (status == EXIT_OK)
++ status = EXIT_HANGUP;
+ lcp_lowerdown(0); /* serial link is no longer available */
+ link_terminated(0);
+ return;