]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
19 years agotodo: add this file
Karel Zak [Wed, 7 Feb 2007 09:11:07 +0000 (10:11 +0100)] 
todo: add this file

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agomkswap: gcc happy: unsigned long usage
Karel Zak [Wed, 7 Feb 2007 09:10:22 +0000 (10:10 +0100)] 
mkswap: gcc happy: unsigned long usage

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoClean up pagesize/PAGE_SIZE usage.
Karel Zak [Tue, 6 Feb 2007 10:35:15 +0000 (11:35 +0100)] 
Clean up pagesize/PAGE_SIZE usage.

Now all code in util-linux uses sysconf(_SC_PAGESIZE) that is standardized and
preferred way of querying page size. The asm/page.h file is not included to the
code anymore. (This patch doesn't change mount's FS detection code which will
be removed later).

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agotests: fix argv[] usage in mnt_test_sysinfo.c
Karel Zak [Tue, 6 Feb 2007 10:33:35 +0000 (11:33 +0100)] 
tests: fix argv[] usage in mnt_test_sysinfo.c

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agonamei: new regression test
Karel Zak [Wed, 31 Jan 2007 15:45:01 +0000 (16:45 +0100)] 
namei: new regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agonamei: fix logic and infinite loop of symlinks
Karel Zak [Wed, 31 Jan 2007 15:43:18 +0000 (16:43 +0100)] 
namei: fix logic and infinite loop of symlinks

Don't follow the path if a component is not directory.  It doesn't make sense
to support something like:

$ touch a b
$ namei a/b  <-- where "a" is not directory

The support for infinite loop of symbolic links is a strange wish only. The
stack size is very limited. Try:

$ ln -s x
$ namei x/x

[Migration note: severity="low"]

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agocol: getwchar() errors shouldn't be hidden
Karel Zak [Tue, 30 Jan 2007 12:18:51 +0000 (13:18 +0100)] 
col: getwchar() errors shouldn't be hidden

The col truncates output when multibyte errors is detected, but the problem is
not reported to stderr and return code is still same like for successful exit.
This stupid behaviour is fixed by this patch.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agobuild-sys: fix ifdef ENABLE_WIDECHAR usage
Karel Zak [Tue, 30 Jan 2007 12:49:50 +0000 (13:49 +0100)] 
build-sys: fix ifdef ENABLE_WIDECHAR usage

There has been unexpected mix of HAVE_WIDECHAR and ENABLE_WIDECHAR macros. The
ENABLE_WIDECHAR is old version and has to be replaced everywhere otherwise we
will see bugs with multibyte stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agotests: add return code
Karel Zak [Sun, 28 Jan 2007 00:24:15 +0000 (01:24 +0100)] 
tests: add return code

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoraw: add file with udev rule example
Karel Zak [Fri, 26 Jan 2007 19:06:38 +0000 (20:06 +0100)] 
raw: add file with udev rule example

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoraw: move the raw command to /sbin
Karel Zak [Fri, 26 Jan 2007 19:01:39 +0000 (20:01 +0100)] 
raw: move the raw command to /sbin

The raw command could be used from udev scripts.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoraw: don't accept raw0 as a target name
Karel Zak [Fri, 26 Jan 2007 18:55:41 +0000 (19:55 +0100)] 
raw: don't accept raw0 as a target name

The raw0 is rawctl and cannot be used as a normal raw device. The patch
also enlarge range of <N> for raw<N> and improve the query mode.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoraw: update man page (about dd and O_DIRECT)
Karel Zak [Thu, 25 Jan 2007 10:22:42 +0000 (11:22 +0100)] 
raw: update man page (about dd and O_DIRECT)

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agohexdump: don't use memset with zero lenght
Karel Zak [Wed, 17 Jan 2007 13:27:15 +0000 (14:27 +0100)] 
hexdump: don't use memset with zero lenght

gcc 4.1.0: "warning: memset used with constant zero length parameter...."

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoschedutils: add support for SCHED_BATCH
Karel Zak [Tue, 16 Jan 2007 14:24:13 +0000 (15:24 +0100)] 
schedutils: add support for SCHED_BATCH

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoschedutils: remove extra hyptens from man pages
Karel Zak [Tue, 16 Jan 2007 13:30:24 +0000 (14:30 +0100)] 
schedutils: remove extra hyptens from man pages

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agopo: rename mount/mntent.c to mount/mount_mntent.c
Karel Zak [Thu, 4 Jan 2007 14:02:25 +0000 (15:02 +0100)] 
po: rename mount/mntent.c to mount/mount_mntent.c

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoipcs: add new tests for ipcs limits
Karel Zak [Wed, 3 Jan 2007 00:07:55 +0000 (01:07 +0100)] 
ipcs: add new tests for ipcs limits

The tests check if data from kernel and from the ipcs command are same.

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agotests: add simple helper that returns info about system
Karel Zak [Thu, 4 Jan 2007 13:53:19 +0000 (14:53 +0100)] 
tests: add simple helper that returns info about system

usage: tests/helpers/mnt_test_sysinfo <infoname>

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoipcs: max total shared memory in kbytes instead pages
Karel Zak [Fri, 29 Dec 2006 00:13:58 +0000 (01:13 +0100)] 
ipcs: max total shared memory in kbytes instead pages

The ipcs command has reported "max total shared memory" as a number of pages.
The others IPC limits are reported in (k)bytes, so it doesn't make sense mix
pages and bytes in the same output. Now "max total shared memory" is reported in
kbytes.

[Migration note: type="API change", severity="low"]

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoipcs: fix typo in Semaphore headers
Karel Zak [Thu, 28 Dec 2006 22:09:29 +0000 (23:09 +0100)] 
ipcs: fix typo in Semaphore headers

Signed-off-by: Karel Zak <kzak@redhat.com>
19 years agoipcs: add regression test for output headers
Karel Zak [Tue, 2 Jan 2007 23:42:23 +0000 (00:42 +0100)] 
ipcs: add regression test for output headers

Signed-off-by: Karel Zak <kzak@redhat.com>
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.

23 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.