]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
19 years agomore: fix file descriptor leak
Karel Zak [Tue, 2 Jan 2007 23:28:02 +0000 (00:28 +0100)] 
more: fix file descriptor leak

When you view a file with the more command and run a shell, the file descriptor
for reading the file is leaked to that process.

To test, more any file. Then do !/bin/sh. At the prompt do "ls -l /proc/$$/fd"
and you'll see the leaked fd.

From: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoexecl() should be use NULL not 0
Karel Zak [Thu, 28 Dec 2006 21:26:02 +0000 (22:26 +0100)] 
execl() should be use NULL not 0

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agobuild-sys: remove DEFAULT_INCLUDES workaround
Karel Zak [Thu, 4 Jan 2007 13:39:17 +0000 (14:39 +0100)] 
build-sys: remove DEFAULT_INCLUDES workaround

The automake stuff uses "-I.". as a default gcc option for includes. This is a
problem for source code where is local includes with a same name like system
includes (e.g.  mntent.h, paths.h). Possible workaround is overwrite the
automake DEFAULT_INCLUDES variable. But this solution produces warnings. The
best way (this patch) is probably rename the files and remove DEFAULT_INCLUDES.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agotests: add basic infrastructure for regression tests
Karel Zak [Thu, 4 Jan 2007 13:23:48 +0000 (14:23 +0100)] 
tests: add basic infrastructure for regression tests

The patch adds tests/ directory with simple regression tests infrastructure.

Also, it adds the "ts-mount-paths" test that testing if all defined paths
(fstab, mtab, locks) are still same.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agomount: add simple (printf-like) debug routine and --debug option
Karel Zak [Wed, 27 Dec 2006 22:35:56 +0000 (23:35 +0100)] 
mount: add simple (printf-like) debug routine and --debug option

The --debug=<level> command line option enables debug outputs. It's
undocumented option, because it's really for debug/tests purpose only.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agobuild-sys: rename to -ng, change maintainer name
Karel Zak [Thu, 4 Jan 2007 12:44:06 +0000 (13:44 +0100)] 
build-sys: rename to -ng, change maintainer name

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agobuild-sys: add missing files
Karel Zak [Thu, 4 Jan 2007 10:57:07 +0000 (11:57 +0100)] 
build-sys: add missing files

This patch add all missing headers, man pages and README files to automake
stuff and "make dist-gzip" produces useful tarball now.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agobuild-sys: remove generated autotools stuff from git
Karel Zak [Wed, 3 Jan 2007 21:20:44 +0000 (22:20 +0100)] 
build-sys: remove generated autotools stuff from git

The generated autotools stuff shouldn't be maintained by SCM. After check out
from git use ./autogen.sh. For more details see README.devel.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoImported from util-linux-2.13-pre7 tarball. v2.13-pre7
Karel Zak [Wed, 6 Dec 2006 23:27:22 +0000 (00:27 +0100)] 
Imported from util-linux-2.13-pre7 tarball.

19 years agoImported from util-linux-2.13-pre6 tarball. v2.13-pre6
Karel Zak [Wed, 6 Dec 2006 23:27:13 +0000 (00:27 +0100)] 
Imported from util-linux-2.13-pre6 tarball.

19 years agoImported from util-linux-2.13-pre5 tarball. v2.13-pre5
Karel Zak [Wed, 6 Dec 2006 23:27:10 +0000 (00:27 +0100)] 
Imported from util-linux-2.13-pre5 tarball.

19 years agoImported from util-linux-2.13-pre4 tarball. v2.13-pre4
Karel Zak [Wed, 6 Dec 2006 23:27:06 +0000 (00:27 +0100)] 
Imported from util-linux-2.13-pre4 tarball.

19 years agoImported from util-linux-2.13-pre3 tarball. v2.13-pre3
Karel Zak [Wed, 6 Dec 2006 23:27:03 +0000 (00:27 +0100)] 
Imported from util-linux-2.13-pre3 tarball.

19 years agoImported from util-linux-2.13-pre2 tarball. v2.13-pre2
Karel Zak [Wed, 6 Dec 2006 23:26:58 +0000 (00:26 +0100)] 
Imported from util-linux-2.13-pre2 tarball.

19 years agoImported from util-linux-2.13-pre1 tarball. v2.13-pre1
Karel Zak [Wed, 6 Dec 2006 23:26:54 +0000 (00:26 +0100)] 
Imported from util-linux-2.13-pre1 tarball.

19 years agoImported from util-linux-2.12r tarball. v2.12r
Karel Zak [Wed, 6 Dec 2006 23:26:46 +0000 (00:26 +0100)] 
Imported from util-linux-2.12r tarball.

19 years agoImported from util-linux-2.12r-pre1 tarball. v2.12r-pre1
Karel Zak [Wed, 6 Dec 2006 23:26:44 +0000 (00:26 +0100)] 
Imported from util-linux-2.12r-pre1 tarball.

19 years agoImported from util-linux-2.12q tarball. v2.12q
Karel Zak [Wed, 6 Dec 2006 23:26:42 +0000 (00:26 +0100)] 
Imported from util-linux-2.12q tarball.

19 years agoImported from util-linux-2.12q-pre2 tarball. v2.12q-pre2
Karel Zak [Wed, 6 Dec 2006 23:26:40 +0000 (00:26 +0100)] 
Imported from util-linux-2.12q-pre2 tarball.

19 years agoImported from util-linux-2.12q-pre1 tarball. v2.12q-pre1
Karel Zak [Wed, 6 Dec 2006 23:26:36 +0000 (00:26 +0100)] 
Imported from util-linux-2.12q-pre1 tarball.

19 years agoImported from util-linux-2.12p tarball. v2.12p
Karel Zak [Wed, 6 Dec 2006 23:26:33 +0000 (00:26 +0100)] 
Imported from util-linux-2.12p tarball.

19 years agoImported from util-linux-2.12o tarball. v2.12o
Karel Zak [Wed, 6 Dec 2006 23:26:31 +0000 (00:26 +0100)] 
Imported from util-linux-2.12o tarball.

19 years agoImported from util-linux-2.12m tarball. v2.12m
Karel Zak [Wed, 6 Dec 2006 23:26:30 +0000 (00:26 +0100)] 
Imported from util-linux-2.12m tarball.

19 years agoImported from util-linux-2.12l tarball. v2.12l
Karel Zak [Wed, 6 Dec 2006 23:26:28 +0000 (00:26 +0100)] 
Imported from util-linux-2.12l tarball.

19 years agoImported from util-linux-2.12k tarball. v2.12k
Karel Zak [Wed, 6 Dec 2006 23:26:26 +0000 (00:26 +0100)] 
Imported from util-linux-2.12k tarball.

19 years agoImported from util-linux-2.12j tarball. v2.12j
Karel Zak [Wed, 6 Dec 2006 23:26:24 +0000 (00:26 +0100)] 
Imported from util-linux-2.12j tarball.

19 years agoImported from util-linux-2.12i tarball. v2.12i
Karel Zak [Wed, 6 Dec 2006 23:26:22 +0000 (00:26 +0100)] 
Imported from util-linux-2.12i tarball.

19 years agoImported from util-linux-2.12h tarball. v2.12h
Karel Zak [Wed, 6 Dec 2006 23:26:19 +0000 (00:26 +0100)] 
Imported from util-linux-2.12h tarball.

19 years agoImported from util-linux-2.12d tarball. v2.12d
Karel Zak [Wed, 6 Dec 2006 23:26:18 +0000 (00:26 +0100)] 
Imported from util-linux-2.12d tarball.

19 years agoImported from util-linux-2.12b tarball. v2.12b
Karel Zak [Wed, 6 Dec 2006 23:26:16 +0000 (00:26 +0100)] 
Imported from util-linux-2.12b tarball.

19 years agoImported from util-linux-2.12a tarball. v2.12a
Karel Zak [Wed, 6 Dec 2006 23:26:14 +0000 (00:26 +0100)] 
Imported from util-linux-2.12a tarball.

19 years agoImported from util-linux-2.12pre tarball. v2.12pre
Karel Zak [Wed, 6 Dec 2006 23:26:13 +0000 (00:26 +0100)] 
Imported from util-linux-2.12pre tarball.

19 years agoImported from util-linux-2.12 tarball. v2.12
Karel Zak [Wed, 6 Dec 2006 23:26:12 +0000 (00:26 +0100)] 
Imported from util-linux-2.12 tarball.

19 years agoImported from util-linux-2.11y tarball. v2.11y
Karel Zak [Wed, 6 Dec 2006 23:26:08 +0000 (00:26 +0100)] 
Imported from util-linux-2.11y tarball.

19 years agoImported from util-linux-2.11x tarball. v2.11x
Karel Zak [Wed, 6 Dec 2006 23:26:05 +0000 (00:26 +0100)] 
Imported from util-linux-2.11x tarball.

19 years agoImported from util-linux-2.11w tarball. v2.11w
Karel Zak [Wed, 6 Dec 2006 23:26:03 +0000 (00:26 +0100)] 
Imported from util-linux-2.11w tarball.

19 years agoImported from util-linux-2.11v tarball. v2.11v
Karel Zak [Wed, 6 Dec 2006 23:26:02 +0000 (00:26 +0100)] 
Imported from util-linux-2.11v tarball.

19 years agoImported from util-linux-2.11u tarball. v2.11u
Karel Zak [Wed, 6 Dec 2006 23:26:00 +0000 (00:26 +0100)] 
Imported from util-linux-2.11u tarball.

19 years agoImported from util-linux-2.11t tarball. v2.11t
Karel Zak [Wed, 6 Dec 2006 23:25:58 +0000 (00:25 +0100)] 
Imported from util-linux-2.11t tarball.

19 years agoImported from util-linux-2.11r tarball. v2.11r
Karel Zak [Wed, 6 Dec 2006 23:25:56 +0000 (00:25 +0100)] 
Imported from util-linux-2.11r tarball.

19 years agoImported from util-linux-2.11q tarball. v2.11q
Karel Zak [Wed, 6 Dec 2006 23:25:54 +0000 (00:25 +0100)] 
Imported from util-linux-2.11q tarball.

19 years agoImported from util-linux-2.11o tarball. v2.11o
Karel Zak [Wed, 6 Dec 2006 23:25:53 +0000 (00:25 +0100)] 
Imported from util-linux-2.11o tarball.

19 years agoImported from util-linux-2.11n tarball. v2.11n
Karel Zak [Wed, 6 Dec 2006 23:25:52 +0000 (00:25 +0100)] 
Imported from util-linux-2.11n tarball.

19 years agoImported from util-linux-2.11m tarball. v2.11m
Karel Zak [Wed, 6 Dec 2006 23:25:49 +0000 (00:25 +0100)] 
Imported from util-linux-2.11m tarball.

19 years agoImported from util-linux-2.11f tarball. v2.11f
Karel Zak [Wed, 6 Dec 2006 23:25:48 +0000 (00:25 +0100)] 
Imported from util-linux-2.11f tarball.

19 years agoImported from util-linux-2.11b tarball. v2.11b
Karel Zak [Wed, 6 Dec 2006 23:25:46 +0000 (00:25 +0100)] 
Imported from util-linux-2.11b tarball.

19 years agoImported from util-linux-2.10s tarball. v2.10s
Karel Zak [Wed, 6 Dec 2006 23:25:44 +0000 (00:25 +0100)] 
Imported from util-linux-2.10s tarball.

19 years agoImported from util-linux-2.10m tarball. v2.10m
Karel Zak [Wed, 6 Dec 2006 23:25:43 +0000 (00:25 +0100)] 
Imported from util-linux-2.10m tarball.

19 years agoImported from util-linux-2.10f tarball. v2.10f
Karel Zak [Wed, 6 Dec 2006 23:25:41 +0000 (00:25 +0100)] 
Imported from util-linux-2.10f tarball.

19 years agoImported from util-linux-2.9v tarball. v2.9v
Karel Zak [Wed, 6 Dec 2006 23:25:39 +0000 (00:25 +0100)] 
Imported from util-linux-2.9v tarball.

19 years agoImported from util-linux-2.9i tarball. v2.9i
Karel Zak [Wed, 6 Dec 2006 23:25:37 +0000 (00:25 +0100)] 
Imported from util-linux-2.9i tarball.

19 years agoImported from util-linux-2.8 tarball. v2.8
Karel Zak [Wed, 6 Dec 2006 23:25:35 +0000 (00:25 +0100)] 
Imported from util-linux-2.8 tarball.

19 years agoImported from util-linux-2.7.1 tarball. v2.7.1
Karel Zak [Wed, 6 Dec 2006 23:25:34 +0000 (00:25 +0100)] 
Imported from util-linux-2.7.1 tarball.

19 years agoImported from util-linux-2.5 tarball. v2.5
Karel Zak [Wed, 6 Dec 2006 23:25:33 +0000 (00:25 +0100)] 
Imported from util-linux-2.5 tarball.

19 years agoImported from util-linux-2.2 tarball. v2.2
Karel Zak [Wed, 6 Dec 2006 23:25:32 +0000 (00:25 +0100)] 
Imported from util-linux-2.2 tarball.

19 years agoDon't include dirname.h, since system.h does it now.
Paul Eggert [Sun, 3 Sep 2006 02:53:16 +0000 (02:53 +0000)] 
Don't include dirname.h, since system.h does it now.

19 years agoAdd a bootstrap procedure, so that the CVS version contains fewer
Paul Eggert [Mon, 21 Aug 2006 07:30:45 +0000 (07:30 +0000)] 
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history.  Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h.  Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc.  Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool.  Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h.  Don't check for statvfs.  Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.

20 years ago* src/su.c (usage): Correct typo in --help output: s/commmand/command/
Jim Meyering [Fri, 21 Jul 2006 13:32:40 +0000 (13:32 +0000)] 
* src/su.c (usage): Correct typo in --help output: s/commmand/command/
Reported by Tim Waugh.
Also remove the comment duplicating much of --help output.

20 years ago(log_su, run_shell): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:08:20 +0000 (12:08 +0000)] 
(log_su, run_shell): Use new last_component, in place of base_name.

20 years agoRemove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:09:13 +0000 (15:09 +0000)] 
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

21 years agoUpdate FSF postal mail address.
Jim Meyering [Sat, 14 May 2005 07:58:31 +0000 (07:58 +0000)] 
Update FSF postal mail address.

21 years agoUpdate FSF postal mail address.
Jim Meyering [Sat, 14 May 2005 06:57:06 +0000 (06:57 +0000)] 
Update FSF postal mail address.

21 years ago(run_shell): Pass a new n_additional_args arg, so that
Paul Eggert [Tue, 3 Aug 2004 22:23:25 +0000 (22:23 +0000)] 
(run_shell): Pass a new n_additional_args arg, so that
the callee doesn't have to count 'em.  All callers changed.
Don't allocate more space for the arg vector than we'll need.
Use memcpy to copy the args rather than rolling our own loop.
Use size_t for sizes.
(fast_startup, simulate_login, change_environment, log_su,
correct_password, restricted_shell, main): Use bool for booleans.
(longopts): Don't assume change_environment is an int.
Use NULL, not 0, for pointers.
(xsetenv): New function, replacing xputenv and concat.
All callers changed.
(elements): Remove; no longer needed.
(log_su, correct_passwd, main): Prefer !x to x==NULL.
(log_su): 2 -> STDERR_FILENO.
(modify_environment, main): Don't assume that getenv's returned value
has an indefinite lifetime.
(modify_environment): Allocate a larger environ.
(main): Remove an impossible 'case 0'; if it happens now, it'll
get diagnosed.  Don't assume getpwnam results outlive endpwent.
Check for null or empty pw_name, pw_dir and for null pw_passwd.

22 years ago(correct_password, restricted_shell, main):
Jim Meyering [Tue, 1 Jun 2004 13:04:02 +0000 (13:04 +0000)] 
(correct_password, restricted_shell, main):
Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.

22 years ago(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Thu, 22 Jan 2004 21:00:25 +0000 (21:00 +0000)] 
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.

(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.

22 years agoMost .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
Jim Meyering [Sat, 18 Oct 2003 10:05:47 +0000 (10:05 +0000)] 
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
of 2003-09-19.  Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.

* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.

22 years ago(WRITTEN_BY): Rename from AUTHORS.
Jim Meyering [Thu, 18 Sep 2003 22:19:03 +0000 (22:19 +0000)] 
(WRITTEN_BY): Rename from AUTHORS.
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.

22 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 07:29:54 +0000 (07:29 +0000)] 
Don't include headers already included by system.h:
Don't include closeout.h.

23 years ago(usage): Don't call close_stdout here.
Jim Meyering [Fri, 18 Jul 2003 08:38:43 +0000 (08:38 +0000)] 
(usage): Don't call close_stdout here.
(main): Use close_stdout via atexit.
Now `su --version > /dev/full' fails, as it should.
Somehow, the change of 2000-05-07 that purports to fix this
was not checked in.

23 years ago(main): Call initialize_main.
Jim Meyering [Tue, 17 Jun 2003 18:13:23 +0000 (18:13 +0000)] 
(main): Call initialize_main.

23 years agoRemove anachronistic casts of xmalloc,
Jim Meyering [Fri, 11 Apr 2003 10:51:56 +0000 (10:51 +0000)] 
Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.

23 years agoChange `exit (0)' to `exit (EXIT_SUCCESS)',
Jim Meyering [Sat, 31 Aug 2002 08:52:10 +0000 (08:52 +0000)] 
Change `exit (0)' to `exit (EXIT_SUCCESS)',
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.

23 years agoChange `error (1, ...' to `error (EXIT_FAILURE, ...'.
Jim Meyering [Fri, 30 Aug 2002 23:04:53 +0000 (23:04 +0000)] 
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.

23 years ago(run_shell): Exit with status 126 or 127 when execvp or
Jim Meyering [Thu, 1 Aug 2002 09:19:24 +0000 (09:19 +0000)] 
(run_shell): Exit with status 126 or 127 when execvp or
execv fails, for consistency with POSIX commands like env and nice.

24 years ago(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
Jim Meyering [Tue, 2 Jul 2002 09:09:10 +0000 (09:09 +0000)] 
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.

24 years agoUse new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
Jim Meyering [Sat, 15 Dec 2001 20:46:30 +0000 (20:46 +0000)] 
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.

24 years ago(xputenv): Remove parameter's const qualifier.
Jim Meyering [Tue, 14 Aug 2001 07:18:34 +0000 (07:18 +0000)] 
(xputenv): Remove parameter's const qualifier.

25 years agoInclude "dirname.h".
Jim Meyering [Sat, 12 May 2001 16:05:51 +0000 (16:05 +0000)] 
Include "dirname.h".
(base_name): Remove decl; now in dirname.h.

25 years agoback out last, prematurely-committed, change
Jim Meyering [Sun, 7 Jan 2001 16:07:33 +0000 (16:07 +0000)] 
back out last, prematurely-committed, change

25 years agoCorrect the indentation of an `#endif'.
Jim Meyering [Sun, 7 Jan 2001 16:06:27 +0000 (16:06 +0000)] 
Correct the indentation of an `#endif'.

25 years ago(xputenv): Invoke xalloc_die instead of printing our own message.
Jim Meyering [Mon, 7 Aug 2000 16:50:11 +0000 (16:50 +0000)] 
(xputenv): Invoke xalloc_die instead of printing our own message.

25 years agoInclude <sys/param.h> if HAVE_SYS_PARAM_H is defined,
Jim Meyering [Sun, 23 Jul 2000 16:27:13 +0000 (16:27 +0000)] 
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.

26 years agoInclude "closeout.h".
Jim Meyering [Sun, 7 May 2000 14:48:25 +0000 (14:48 +0000)] 
Include "closeout.h".
(main): Call atexit with close_stdout.

26 years ago(correct_password): Correct HAVE_STRUCT_* name in #if guard
Jim Meyering [Wed, 9 Feb 2000 11:57:01 +0000 (11:57 +0000)] 
(correct_password): Correct HAVE_STRUCT_* name in #if guard
to go along with corrected autoconf test:  Reported by G Queri.

26 years ago(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',
Jim Meyering [Sun, 30 Jan 2000 22:23:58 +0000 (22:23 +0000)] 
(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',
rather than just `#ifdef HAVE_SHADOW_H'.

26 years agoRemove declaration of xstrdup.
Jim Meyering [Wed, 8 Sep 1999 08:39:49 +0000 (08:39 +0000)] 
Remove declaration of xstrdup.

26 years agosplit a long line.
Jim Meyering [Mon, 30 Aug 1999 14:39:05 +0000 (14:39 +0000)] 
split a long line.

26 years ago(run_shell): Declare with noreturn attribute.
Jim Meyering [Sun, 22 Aug 1999 10:53:13 +0000 (10:53 +0000)] 
(run_shell): Declare with noreturn attribute.
Use an explicit exit(1) rather than doing that through error.

27 years agoNo longer include long-options.h.
Jim Meyering [Wed, 31 Mar 1999 05:52:46 +0000 (05:52 +0000)] 
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.

27 years ago(PROGRAM_NAME, AUTHORS): Define and use.
Jim Meyering [Wed, 31 Mar 1999 04:16:08 +0000 (04:16 +0000)] 
(PROGRAM_NAME, AUTHORS): Define and use.

27 years agoInclude long-options.h.
Jim Meyering [Sat, 6 Mar 1999 15:28:54 +0000 (15:28 +0000)] 
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.

27 years agoupdate copyright dates
Jim Meyering [Tue, 16 Feb 1999 04:17:15 +0000 (04:17 +0000)] 
update copyright dates

27 years ago(usage): Remove static attribute.
Jim Meyering [Mon, 25 Jan 1999 14:33:38 +0000 (14:33 +0000)] 
(usage): Remove static attribute.

27 years agoupdate bug-reporting address
Jim Meyering [Sat, 19 Sep 1998 17:32:35 +0000 (17:32 +0000)] 
update bug-reporting address

27 years ago(longopts): Use corresponding short-option character
Jim Meyering [Sun, 30 Aug 1998 03:12:22 +0000 (03:12 +0000)] 
(longopts): Use corresponding short-option character
in place of `1', and `NULL' in place of pointer in initialization.

28 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:22:04 +0000 (22:22 +0000)] 
Don't include limits.h.

28 years agouse NULL, '\0' instead of zeroes
Jim Meyering [Wed, 10 Dec 1997 10:31:25 +0000 (10:31 +0000)] 
use NULL, '\0' instead of zeroes

28 years ago(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.
Jim Meyering [Wed, 10 Dec 1997 10:25:46 +0000 (10:25 +0000)] 
(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.
Patch from Dick Streefland.

28 years agoRemove old-style xmalloc and xrealloc decls.
Jim Meyering [Sat, 25 Oct 1997 22:03:20 +0000 (22:03 +0000)] 
Remove old-style xmalloc and xrealloc decls.

28 years agoupdate bug-reporting address
Jim Meyering [Tue, 7 Oct 1997 23:51:39 +0000 (23:51 +0000)] 
update bug-reporting address