From dca44c091d3ee00f7ea6d9a697fcb053cbd55406 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Oct 2011 01:34:12 +0000 Subject: [PATCH] pppd: fix the exit code in case of authentication failure or other errors SVN-Revision: 28498 --- package/ppp/patches/208-fix_status_code.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/ppp/patches/208-fix_status_code.patch 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; -- 2.30.2