Todd C. Miller
|
e4e815dd82
|
Include signal.h before sudo_exec.h since it uses sigset_t * in the
fork_pty prototype.
|
2012-08-10 15:29:07 -04:00 |
|
Todd C. Miller
|
0fbd5e1bc2
|
Fix the setutxent and endutxent compatibility defines (this time
correctly) when only setutent and endutent are available.
|
2012-04-23 20:04:26 -04:00 |
|
Todd C. Miller
|
5eb61122a6
|
Fix compat setutxent and endutxent macros for systems with
setutent() but not setutxent(). From Gustavo Zacarias
|
2012-03-30 07:55:49 -04:00 |
|
Todd C. Miller
|
21a2f95821
|
Use stdbool.h instead of rolling our own TRUE/FALSE macros.
|
2011-12-02 11:27:33 -05:00 |
|
Todd C. Miller
|
839919566e
|
Add debug_decl/debug_return (almost) everywhere.
Remove old sudo_debug() and convert users to sudo_debug_printf().
|
2011-10-22 14:40:21 -04:00 |
|
Todd C. Miller
|
7304bc744e
|
Add check for old being NULL in utmp_setid(); from Steven McDonald
|
2011-09-27 09:30:59 -04:00 |
|
Todd C. Miller
|
6f8cd91928
|
can't -> "unable to" in warning/error messages
|
2011-05-18 12:36:26 -04:00 |
|
Todd C. Miller
|
c865a462cc
|
Prepare sudo front end messages for translation.
|
2011-05-06 17:47:51 -04:00 |
|
Todd C. Miller
|
53d183c380
|
Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination. HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
|
2011-03-29 09:10:40 -04:00 |
|
Todd C. Miller
|
2041d39db7
|
Add support for ut_exit
|
2011-03-15 16:18:33 -04:00 |
|
Todd C. Miller
|
3506f01077
|
Add support for controlling whether utmp is updated and which user is
listed in the entry.
|
2011-03-15 15:53:49 -04:00 |
|
Todd C. Miller
|
07968755aa
|
For legacy utmp, strip the /dev/ prefix before trying to determine
slot since the ttys file does not include the /dev/ prefix.
|
2011-03-15 15:51:44 -04:00 |
|
Todd C. Miller
|
8653ccc809
|
Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp. If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
|
2011-03-14 10:20:47 -04:00 |
|
Todd C. Miller
|
1e9def1efa
|
Move utmp handling into utmp.c
|
2011-03-11 15:54:12 -05:00 |
|