he
65525e6df1
Put declaration of pwbuf[] back before any code, so this compiles with
...
older versions of gcc again.
2005-04-02 16:12:52 +00:00
christos
bbb7e01ae0
- Use the getpw*_r methods.
...
- KNF.
2005-03-30 01:16:22 +00:00
christos
93bf0b6883
Deal with signals and process groups (from FreeBSD)
...
Fixes issues with kill -STOP $$ in the su'd shell, and setting up signals
for the child process properly.
2005-03-23 20:02:28 +00:00
christos
dc9dbb2ac7
Don't wait for any process, just our child. pam sessions can fork other
...
processes (such as the ssh pam agent handler) and the wrong process ends
up reaped, wreaking havoc.
2005-02-25 21:49:43 +00:00
manu
0d884d9738
Remove unneeded \ at the end of line, style
2005-01-18 21:39:11 +00:00
christos
f8b8ae274a
Always print pam error in messages
2005-01-12 01:45:32 +00:00
christos
81b53d0cfa
- make LOGIN_CAP mandatory
...
- eliminate global pamh
- use setusercontext() properly (ideas borrowed from FreeBSD)
- remove stray debugging.
This now works.
2005-01-10 23:33:53 +00:00
christos
2ef14ae88a
Restore su.c to version 1.58, plus minor prototyping. Split pam
...
into su_pam.c, and turn it off by default in the Makefile until it
is tested and actually works. The current pam version does not set ruid
properly anymore.
2005-01-10 03:11:50 +00:00