* src/su.c: Add annotations to indicate that su_failure() does
not return.
This commit is contained in:
parent
1f4f00acad
commit
745bcb5406
@ -1,3 +1,8 @@
|
|||||||
|
2011-08-14 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/su.c: Add annotations to indicate that su_failure() does
|
||||||
|
not return.
|
||||||
|
|
||||||
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
|
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* lib/commonio.c: Display PID as unsigned long.
|
* lib/commonio.c: Display PID as unsigned long.
|
||||||
|
4
src/su.c
4
src/su.c
@ -131,7 +131,7 @@ static RETSIGTYPE die (int);
|
|||||||
static bool iswheel (const char *);
|
static bool iswheel (const char *);
|
||||||
#endif /* !USE_PAM */
|
#endif /* !USE_PAM */
|
||||||
static bool restricted_shell (const char *shellname);
|
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);
|
static struct passwd * check_perms (void);
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
static void check_perms_pam (struct passwd *pw);
|
static void check_perms_pam (struct passwd *pw);
|
||||||
@ -207,7 +207,7 @@ static bool restricted_shell (const char *shellname)
|
|||||||
return true;
|
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 */
|
sulog (tty, false, caller_name, name); /* log failed attempt */
|
||||||
#ifdef USE_SYSLOG
|
#ifdef USE_SYSLOG
|
||||||
|
Loading…
Reference in New Issue
Block a user