summaryrefslogtreecommitdiff
path: root/src/su.c
AgeCommit message (Collapse)Author
2000-01-30(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',Jim Meyering
rather than just `#ifdef HAVE_SHADOW_H'.
1999-09-08Remove declaration of xstrdup.Jim Meyering
1999-08-30split a long line.Jim Meyering
1999-08-22(run_shell): Declare with noreturn attribute.Jim Meyering
Use an explicit exit(1) rather than doing that through error.
1999-03-31No longer include long-options.h.Jim Meyering
[long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-31(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-06Include long-options.h.Jim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-25(usage): Remove static attribute.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-08-30(longopts): Use corresponding short-option characterJim Meyering
in place of `1', and `NULL' in place of pointer in initialization.
1997-12-21Don't include limits.h.Jim Meyering
1997-12-10use NULL, '\0' instead of zeroesJim Meyering
1997-12-10(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.Jim Meyering
Patch from Dick Streefland.
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-07-13indentJim Meyering
1997-07-05Redefine/undef getusershell around inclusion of <unistd.h>Jim Meyering
(via system.h) so Cray's int-returning prototype doesn't conflict with our char*-returning one.
1997-05-27Use base_name, not basename.Jim Meyering
1997-03-19cpp-indentJim Meyering
Change a few #ifdef to #if. Remove 3 spurious #ifdef that were guarding an #undef each.
1997-03-18(log_su): Resort to getpwuid if getlogin fails.Jim Meyering
If no tty name is found, use `none' in the log message. Based on a patch from Galen Hazelwood.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-12-19[HAVE_PATHS_H]: Include <paths.h>.Jim Meyering
[_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH. [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH. From Rik Faith.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-24Protoize and reorder functions.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support:Jim Meyering
call setlocale, bindtextdomain, and textdomain.
1996-01-06Remove NGROUPS_MAX junk. It wasn't being used.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-18Indent cpp directives.Jim Meyering
1995-08-08Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-05-15(usage): Add one- and two-line descriptions to --help output.Jim Meyering
From Karl.
1995-03-09add 1995 to Copyright datesJim Meyering
1995-02-27(correct_password): Use memset instead of bzero.Jim Meyering
1994-12-20* src/*.c: Include "error.h" instead of simply declaringJim Meyering
`void error ();'.
1994-10-11.Jim Meyering
1994-10-01.Jim Meyering
1994-09-27merge with 1.10n2Jim Meyering
1994-09-25.Jim Meyering
1994-09-18.Jim Meyering
1994-08-03.Jim Meyering
1994-08-03.Jim Meyering