aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/patches
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
commita1172f3c5dc1cd74605cc0dd3027533bb0ff8b58 (patch)
tree840ce44c992cebda7ff0e0a1caa75a7972ab6e2e /package/ppp/patches
parent4e958797f691e0b90d1770c465d4a3101eb948ac (diff)
downloadmaster-187ad058-a1172f3c5dc1cd74605cc0dd3027533bb0ff8b58.tar.gz
master-187ad058-a1172f3c5dc1cd74605cc0dd3027533bb0ff8b58.tar.bz2
master-187ad058-a1172f3c5dc1cd74605cc0dd3027533bb0ff8b58.zip
pppd: fix the exit code in case of authentication failure or other errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28498 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/patches')
-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 0000000000..c512354a26
--- /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;