From: nekral-guest Date: Sun, 14 Aug 2011 13:15:20 +0000 (+0000) Subject: * src/su.c: Add annotations to indicate that su_failure() does X-Git-Tag: 4.1.5~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745bcb54062736fda345dc692b6a4c79a5e01652;p=thirdparty%2Fshadow.git * src/su.c: Add annotations to indicate that su_failure() does not return. --- diff --git a/ChangeLog b/ChangeLog index 58a9382ac..0029c93be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-14 Nicolas François + + * src/su.c: Add annotations to indicate that su_failure() does + not return. + 2011-07-30 Nicolas François * lib/commonio.c: Display PID as unsigned long. diff --git a/src/su.c b/src/su.c index 84ac42b92..03ad63489 100644 --- a/src/su.c +++ b/src/su.c @@ -131,7 +131,7 @@ static RETSIGTYPE die (int); static bool iswheel (const char *); #endif /* !USE_PAM */ static bool restricted_shell (const char *shellname); -static void su_failure (const char *tty, bool su_to_root); +static /*@noreturn@*/void su_failure (const char *tty, bool su_to_root); static struct passwd * check_perms (void); #ifdef USE_PAM static void check_perms_pam (struct passwd *pw); @@ -207,7 +207,7 @@ static bool restricted_shell (const char *shellname) return true; } -static void su_failure (const char *tty, bool su_to_root) +static /*@noreturn@*/void su_failure (const char *tty, bool su_to_root) { sulog (tty, false, caller_name, name); /* log failed attempt */ #ifdef USE_SYSLOG