Jim Meyering
f691ff2875
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:09:10 +00:00
Jim Meyering
9b586e5da7
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.
2001-12-15 20:46:30 +00:00
Jim Meyering
7eaedbe05f
(xputenv): Remove parameter's const qualifier.
2001-08-14 07:18:34 +00:00
Jim Meyering
787ac7c341
Include "dirname.h".
...
(base_name): Remove decl; now in dirname.h.
2001-05-12 16:05:51 +00:00
Jim Meyering
1b7813537e
back out last, prematurely-committed, change
2001-01-07 16:07:33 +00:00
Jim Meyering
3758e1f272
Correct the indentation of an `#endif'.
2001-01-07 16:06:27 +00:00
Jim Meyering
55cb4d40ba
(xputenv): Invoke xalloc_die instead of printing our own message.
2000-08-07 16:50:11 +00:00
Jim Meyering
26d6d3f836
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
...
rather than if _POSIX_VERSION is defined. Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
2000-07-23 16:27:13 +00:00
Jim Meyering
73a902bb3d
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:48:25 +00:00
Jim Meyering
3c19ad6f04
(correct_password): Correct HAVE_STRUCT_* name in #if guard
...
to go along with corrected autoconf test: Reported by G Queri.
2000-02-09 11:57:01 +00:00
Jim Meyering
ecf3be4269
(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',
...
rather than just `#ifdef HAVE_SHADOW_H'.
2000-01-30 22:23:58 +00:00
Jim Meyering
7f143c6d57
Remove declaration of xstrdup.
1999-09-08 08:39:49 +00:00
Jim Meyering
dcdc31fb98
split a long line.
1999-08-30 14:39:05 +00:00
Jim Meyering
aaad75e2cb
(run_shell): Declare with noreturn attribute.
...
Use an explicit exit(1) rather than doing that through error.
1999-08-22 10:53:13 +00:00
Jim Meyering
0d6cfd6169
No longer include long-options.h.
...
[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 05:52:46 +00:00
Jim Meyering
83cafa6f55
(PROGRAM_NAME, AUTHORS): Define and use.
1999-03-31 04:16:08 +00:00
Jim Meyering
0133410924
Include long-options.h.
...
[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-03-06 15:28:54 +00:00
Jim Meyering
0b66228af4
update copyright dates
1999-02-16 04:17:15 +00:00
Jim Meyering
82fcfb1927
(usage): Remove static attribute.
1999-01-25 14:33:38 +00:00
Jim Meyering
84404df639
update bug-reporting address
1998-09-19 17:32:35 +00:00
Jim Meyering
935e4d4aef
(longopts): Use corresponding short-option character
...
in place of `1', and `NULL' in place of pointer in initialization.
1998-08-30 03:12:22 +00:00
Jim Meyering
8cd5e17ab9
Don't include limits.h.
1997-12-21 22:22:04 +00:00
Jim Meyering
3c35aec120
use NULL, '\0' instead of zeroes
1997-12-10 10:31:25 +00:00
Jim Meyering
bb677c2efb
(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.
...
Patch from Dick Streefland.
1997-12-10 10:25:46 +00:00
Jim Meyering
012be24bdb
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:20 +00:00
Jim Meyering
2ca4f15dbf
update bug-reporting address
1997-10-07 23:51:39 +00:00
Jim Meyering
d143db7aa4
indent
1997-07-13 03:10:15 +00:00
Jim Meyering
132449e4da
Redefine/undef getusershell around inclusion of <unistd.h>
...
(via system.h) so Cray's int-returning prototype doesn't conflict
with our char*-returning one.
1997-07-05 08:25:58 +00:00
Jim Meyering
8e07d01501
Use base_name, not basename.
1997-05-27 13:55:23 +00:00
Jim Meyering
cf407c65b6
cpp-indent
...
Change a few #ifdef to #if.
Remove 3 spurious #ifdef that were guarding an #undef each.
1997-03-19 02:56:54 +00:00
Jim Meyering
1ae8eaf31a
(log_su): Resort to getpwuid if getlogin fails.
...
If no tty name is found, use `none' in the log message.
Based on a patch from Galen Hazelwood.
1997-03-18 12:49:20 +00:00
Jim Meyering
8dab0101c0
update copyrights for 1997
1997-02-09 04:54:16 +00:00
Jim Meyering
6fdfb796f1
bracket bug address with <> and append a period
1997-02-01 04:23:31 +00:00
Jim Meyering
89105fd382
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 03:05:36 +00:00
Jim Meyering
5c0a603f0c
[HAVE_PATHS_H]: Include <paths.h>.
...
[_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
[_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
From Rik Faith.
1996-12-19 04:20:53 +00:00
Jim Meyering
c49b33707e
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
f7e6720735
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
b5209f216e
(main): update --version output to conform to coding standard
1996-10-05 16:37:57 +00:00
Jim Meyering
4c3e2053dc
(usage): Tell where to report bugs.
1996-09-02 15:52:45 +00:00
Jim Meyering
5debca5cf9
update Copyright years for 1996
1996-04-24 04:45:54 +00:00
Jim Meyering
0dc92fd13b
Update FSF's address.
1996-03-24 18:33:12 +00:00
Jim Meyering
59b9536325
Protoize and reorder functions.
1996-03-24 17:43:41 +00:00
Jim Meyering
1f79a1b215
(main): Declare to be of type int, not void.
1996-03-21 22:47:02 +00:00
Jim Meyering
1c85117571
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:14:26 +00:00
Jim Meyering
be07a3ae64
(main): Initialize for internationalized message support:
...
call setlocale, bindtextdomain, and textdomain.
1996-03-12 23:49:29 +00:00
Jim Meyering
6c3b4dfbce
Remove NGROUPS_MAX junk. It wasn't being used.
1996-01-06 06:10:08 +00:00
Jim Meyering
3551197626
s/non-zero/nonzero/g
1995-11-27 05:34:31 +00:00
Jim Meyering
7e9dc9c5e2
Indent cpp directives.
1995-11-18 06:17:07 +00:00
Jim Meyering
684cda5ebc
Annotate localizable strings with _(...). From Franc,ois.
1995-08-08 04:37:34 +00:00
Jim Meyering
a36c9ac117
(usage): Add one- and two-line descriptions to --help output.
...
From Karl.
1995-05-15 04:53:56 +00:00
Jim Meyering
070d354484
add 1995 to Copyright dates
1995-03-09 22:33:05 +00:00
Jim Meyering
742f505ce0
(correct_password): Use memset instead of bzero.
1995-02-27 14:09:10 +00:00
Jim Meyering
55eef5ace0
* src/*.c: Include "error.h" instead of simply declaring
...
`void error ();'.
1994-12-20 05:26:44 +00:00
Jim Meyering
db90b9da09
.
1994-10-11 01:56:53 +00:00
Jim Meyering
f01499274f
.
1994-10-01 02:52:05 +00:00
Jim Meyering
8303e08b4e
merge with 1.10n2
1994-09-27 22:02:00 +00:00
Jim Meyering
e34290f1fe
.
1994-09-25 02:25:20 +00:00
Jim Meyering
4214f67eb9
.
1994-09-18 00:28:34 +00:00
Jim Meyering
99d439a473
.
1994-08-03 15:28:30 +00:00
Jim Meyering
e3feb4f48d
.
1994-08-03 15:21:03 +00:00
Jim Meyering
4e7c6e0ea8
.
1994-07-26 03:44:37 +00:00
Jim Meyering
3e13ef428c
.
1994-04-20 00:23:45 +00:00
Jim Meyering
a7f2355854
.
1994-02-01 14:11:50 +00:00
Jim Meyering
9ce912900a
merge with 1.9
1993-11-09 13:21:32 +00:00
Jim Meyering
e41cfda26a
merge with 1.8.1i
1993-10-26 00:11:14 +00:00
Jim Meyering
7af6dac930
merge with 1.8.1h
1993-10-24 21:30:08 +00:00
Jim Meyering
bc7510e02d
merge with 1.8.1g
1993-10-17 03:57:04 +00:00
Jim Meyering
217825fdd0
merge with 1.8.1d
1993-10-12 14:49:11 +00:00
Jim Meyering
9fd214f804
merge with 1.8.1b
1993-10-12 01:52:24 +00:00
Jim Meyering
b6a55b22e3
merge with 1.8.1 + partial --version and --help
1993-09-08 18:23:12 +00:00
Jim Meyering
a261f05865
Convert static declarations of struct option to use new macros from
...
getopt.h: no_argument, required_argument, and optional_argument.
1992-12-02 18:51:53 +00:00
Jim Meyering
b4a5684416
all files: make most variables static and const when possible.
...
declare lots of functions static.
1992-11-12 04:14:54 +00:00
Jim Meyering
385fd9df81
Make still more file-scope variables `static'.
1992-11-01 07:01:40 +00:00
Jim Meyering
9678ebcd17
Initial revision
1992-11-01 05:44:29 +00:00