Up to [local] / src / usr.bin / su
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_3_3
Revision 1.51 / (download) - annotate - [select for diffs], Tue Dec 17 19:52:02 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.50: +12 -4 lines
Diff to previous 1.50 (colored)
Only call setlogin() if this proccess is a session leader. In practice, this means the login name will be set only if we are exec'd by a shell. This is important because otherwise the parent shell's login name would change too.