* src/su.c: non PAM enabled versions: do not fail if su is called
without a controlling terminal. Ignore ENXIO errors when opening /dev/tty.
This commit is contained in:
parent
8690c74d6a
commit
f100b5ea7e
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
|||||||
|
2012-05-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/su.c: non PAM enabled versions: do not fail if su is called
|
||||||
|
without a controlling terminal. Ignore ENXIO errors when opening
|
||||||
|
/dev/tty.
|
||||||
|
|
||||||
|
2012-05-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/useradd.c: Cleanup, return code 13 no more used.
|
||||||
|
* man/useradd.8.xml: Document return code 14, and remove return
|
||||||
|
code 13.
|
||||||
|
|
||||||
2012-05-20 Nicolas François <nicolas.francois@centraliens.net>
|
2012-05-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* NEWS, man/generate_mans.mak: Generate manpages in man1, man3,
|
* NEWS, man/generate_mans.mak: Generate manpages in man1, man3,
|
||||||
|
3
NEWS
3
NEWS
@ -5,6 +5,9 @@ shadow-4.1.5 -> shadow-4.1.5.1 UNRELEASED
|
|||||||
- login
|
- login
|
||||||
* Log into utmp(x) when PAM is enabled, but do not log into wtmp.
|
* Log into utmp(x) when PAM is enabled, but do not log into wtmp.
|
||||||
This complete pam_lastlog which logs into wtmp and in into utmp(x).
|
This complete pam_lastlog which logs into wtmp and in into utmp(x).
|
||||||
|
- su
|
||||||
|
* non PAM enabled versions: do not fail if su is called without a
|
||||||
|
controlling terminal.
|
||||||
- userdel
|
- userdel
|
||||||
* Fix segfault when userdel removes the user's group.
|
* Fix segfault when userdel removes the user's group.
|
||||||
|
|
||||||
|
3
src/su.c
3
src/su.c
@ -1092,6 +1092,9 @@ int main (int argc, char **argv)
|
|||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
err = ioctl (fd, TIOCNOTTY, (char *) 0);
|
err = ioctl (fd, TIOCNOTTY, (char *) 0);
|
||||||
(void) close (fd);
|
(void) close (fd);
|
||||||
|
} else if (ENXIO == errno) {
|
||||||
|
/* There are no controlling terminal already */
|
||||||
|
err = 0;
|
||||||
}
|
}
|
||||||
#endif /* USE_PAM */
|
#endif /* USE_PAM */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user