Paul Eggert [Tue, 19 Apr 2005 07:08:08 +0000 (07:08 +0000)]
Use numeric group ids, not symbolic group names,
since the latter can have shell metacharacters in them (e.g., spaces).
Paul Eggert [Mon, 18 Apr 2005 23:38:19 +0000 (23:38 +0000)]
Regenerate.
Paul Eggert [Mon, 18 Apr 2005 23:33:55 +0000 (23:33 +0000)]
fetish -> coreutils in some more places
Paul Eggert [Mon, 18 Apr 2005 23:33:29 +0000 (23:33 +0000)]
(FETISH_GROUP): Renamed from COREUTILS_GROUP.
Paul Eggert [Mon, 18 Apr 2005 23:33:10 +0000 (23:33 +0000)]
(COREUTILS_GROUPS): Renamed from FETISH_GROUPS.
Paul Eggert [Mon, 18 Apr 2005 23:32:49 +0000 (23:32 +0000)]
(LDADD, $(PROGRAMS)): fetish -> coreutils.
Paul Eggert [Mon, 18 Apr 2005 23:32:29 +0000 (23:32 +0000)]
(gl_FUNC_RMDIR_NOTEMPTY): Renamed from
fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
variable prefixes.
Paul Eggert [Mon, 18 Apr 2005 23:32:12 +0000 (23:32 +0000)]
(gl_MACROS): Use gl_ or coreutils_ rather than fetish_ for prefixes.
Paul Eggert [Mon, 18 Apr 2005 23:31:42 +0000 (23:31 +0000)]
(gl_CLOCK_TIME): Use gl_ rather than fetish_ for
variable names.
Paul Eggert [Mon, 18 Apr 2005 23:31:22 +0000 (23:31 +0000)]
fetish->coreutils in compilation command.
Paul Eggert [Mon, 18 Apr 2005 23:30:55 +0000 (23:30 +0000)]
coreutils->fetish in comment.
Paul Eggert [Mon, 18 Apr 2005 23:30:41 +0000 (23:30 +0000)]
(noinst_LIBRARIES): fetish -> coreutils.
(libcoreutils_a_SOURCES): Renamed from libfetish_a_SOURCES.
All uses changed.
(libcoreutils_a_LIBADD): Renamed from libfetish_a_LIBADD.
All uses changed.
(libcoreutils_a_DEPENDENCIES): Renamed from libfetish_a_DEPENDENCIES.
All uses changed.
Paul Eggert [Mon, 18 Apr 2005 23:30:19 +0000 (23:30 +0000)]
(emit_upload_commands): Remove fetish.sf.net.
Paul Eggert [Mon, 18 Apr 2005 23:29:51 +0000 (23:29 +0000)]
(ftp): Remove fetish.sf.net.
Paul Eggert [Mon, 18 Apr 2005 18:48:22 +0000 (18:48 +0000)]
Fix typo in comment.
Paul Eggert [Mon, 18 Apr 2005 18:37:36 +0000 (18:37 +0000)]
Use "cat", not "test", to test for
../../src/dd. Problem reported by Eric Blake.
Jim Meyering [Mon, 18 Apr 2005 07:05:11 +0000 (07:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 18 Apr 2005 07:03:50 +0000 (07:03 +0000)]
Don't include stat-macros.h directly. system.h does that.
Paul Eggert [Mon, 18 Apr 2005 06:36:45 +0000 (06:36 +0000)]
Work around a couple of "make check" failures reported for Cygwin
and ash by Eric Blake.
Paul Eggert [Mon, 18 Apr 2005 06:35:22 +0000 (06:35 +0000)]
Skip this test if "trap '' CHLD" doesn't work.
Paul Eggert [Mon, 18 Apr 2005 06:35:06 +0000 (06:35 +0000)]
Skip this test if ../../src/dd isn't readable.
Jim Meyering [Sat, 16 Apr 2005 06:38:22 +0000 (06:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Apr 2005 06:38:20 +0000 (06:38 +0000)]
(S_TYPEISSHM): Remove definition.
Get the definition by including "stat-macros.h", instead.
Paul Eggert [Thu, 14 Apr 2005 20:35:59 +0000 (20:35 +0000)]
Fix test suite problems reported by Eric Blake on Cygwin.
Paul Eggert [Thu, 14 Apr 2005 20:35:34 +0000 (20:35 +0000)]
(dot_mount_point): Use stat rather than df, as
it's more reliable.
(other_partition_tmpdir): Remove df from name as that would be
misleading now.
Paul Eggert [Thu, 14 Apr 2005 20:35:14 +0000 (20:35 +0000)]
Ignore chatter about when files are removed,
since POSIX doesn't require rename to fail across file systems.
Jim Meyering [Thu, 14 Apr 2005 12:13:26 +0000 (12:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 14 Apr 2005 12:09:00 +0000 (12:09 +0000)]
Correct typo, fchmod -> fchown, in a comment.
Paul Eggert [Wed, 13 Apr 2005 18:42:13 +0000 (18:42 +0000)]
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert [Wed, 13 Apr 2005 18:42:00 +0000 (18:42 +0000)]
(zone): Allow relunit_snumber after tZONE, so
that "UTC +1 second" continues to work. Problem reported
by Dmitry V. Levin.
(relunit_snumber): New rule.
(relunit): Use it.
Paul Eggert [Tue, 12 Apr 2005 07:41:42 +0000 (07:41 +0000)]
src/ls.c (usage): "uid" -> "user ID".
Paul Eggert [Tue, 12 Apr 2005 07:39:38 +0000 (07:39 +0000)]
(usage): uid -> user ID
Paul Eggert [Tue, 12 Apr 2005 07:21:48 +0000 (07:21 +0000)]
* getdate.y: Fix problem with parsing GMT time stamps during London summers.
Paul Eggert [Tue, 12 Apr 2005 07:21:18 +0000 (07:21 +0000)]
(universal_time_zone_table): New constant.
(time_zone_table): Remove GMT, UT, UTC entries; they're now in
universal_time_zone_table.
(lookup_zone): Prefer universal_time_zone_table to
local_time_zone_table, so that "GMT" time stamps are allowed in
London during the summer. Problem reported by Ian Abbott.
Jim Meyering [Tue, 12 Apr 2005 06:47:49 +0000 (06:47 +0000)]
*** empty log message ***
Jim Meyering [Tue, 12 Apr 2005 06:47:44 +0000 (06:47 +0000)]
(tsort): Use "%s" as the format string, rather than a diagnostic or a file name.
Jim Meyering [Tue, 12 Apr 2005 06:46:10 +0000 (06:46 +0000)]
(compare_files): Remove declaration of unused local.
Paul Eggert [Tue, 12 Apr 2005 05:53:02 +0000 (05:53 +0000)]
For consistency, standardize on "user ID" rather than "uid".
Paul Eggert [Tue, 12 Apr 2005 05:52:37 +0000 (05:52 +0000)]
Reword usage, man pages to use "user ID" rather than "uid" etc.
Paul Eggert [Tue, 12 Apr 2005 05:44:47 +0000 (05:44 +0000)]
(usage, main): Use "user ID", not "UID", and similarly for "group ID".
Paul Eggert [Tue, 12 Apr 2005 05:44:16 +0000 (05:44 +0000)]
(usage): Use "user ID", not "UID", and similarly
for "group ID".
Paul Eggert [Tue, 12 Apr 2005 05:43:36 +0000 (05:43 +0000)]
Reword to match coreutils.texi.
Paul Eggert [Tue, 12 Apr 2005 05:43:19 +0000 (05:43 +0000)]
Reword to match user manual.
Paul Eggert [Tue, 12 Apr 2005 05:42:55 +0000 (05:42 +0000)]
For consistency, standardize on "user ID" rather
than "uid" or "UID" or "user id". Similarly for "group ID".
Paul Eggert [Mon, 11 Apr 2005 20:21:07 +0000 (20:21 +0000)]
Regenerate.
Paul Eggert [Mon, 11 Apr 2005 20:15:45 +0000 (20:15 +0000)]
Add bulletproofing for cases where stdin, stdout, or stderr are closed.
Paul Eggert [Mon, 11 Apr 2005 20:13:42 +0000 (20:13 +0000)]
Add bulletproofing for cases where stdin, stdout, or stderr are closed.
Paul Eggert [Mon, 11 Apr 2005 20:13:26 +0000 (20:13 +0000)]
Include stdio_safer.h.
(check_file): Don't assume fopen cannot return stdin or stdout.
Paul Eggert [Mon, 11 Apr 2005 20:13:10 +0000 (20:13 +0000)]
(next_file): Don't assume fopen cannot return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:12:51 +0000 (20:12 +0000)]
(have_read_stdin): Remove; no longer needed. All uses
removed.
(tsort): Do not assume fopen can't return stdin.
Close stdin before returning. All uses changed.
Paul Eggert [Mon, 11 Apr 2005 20:12:32 +0000 (20:12 +0000)]
Include unistd-safer.h.
(touch): Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:12:17 +0000 (20:12 +0000)]
Include stdio-safer.h.
(tee): Use fopen_safer.
Paul Eggert [Mon, 11 Apr 2005 20:12:01 +0000 (20:12 +0000)]
Include unistd-safer.h rather than fcntl-safer.h.
(recheck, tail_file): Use fd_safer rather than open_safer.
Paul Eggert [Mon, 11 Apr 2005 20:11:45 +0000 (20:11 +0000)]
Include unistd-safer.h.
(copy_to_temp): Use fd_safer.
(tac_file): Don't assume fopen cannot return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:11:27 +0000 (20:11 +0000)]
(bsd_sum_file, sysv_sym_file):
Use same pattern as elsewhere for checking for stdin.
Paul Eggert [Mon, 11 Apr 2005 20:11:08 +0000 (20:11 +0000)]
Include unistd-safer.h.
(cwrite): Use fd_safer. Replace mystery constant 0666 with symbolic
version, as POSIX requires.
Paul Eggert [Mon, 11 Apr 2005 20:10:52 +0000 (20:10 +0000)]
Include unistd-safer.h.
(create_temp_file): Use fd_safer.
(xfclose): Don't assume fileno (stdin) == STDIN_FILENO, etc.
Paul Eggert [Mon, 11 Apr 2005 20:10:23 +0000 (20:10 +0000)]
Include unistd-safer.h.
(wipename): Use fd_safer on directory file descriptor.
(wipefile): Remove special case for /dev/fd/* on older hosts.
It didn't work in general, and wasn't documented.
Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:10:00 +0000 (20:10 +0000)]
(main): Don't assume fopen returns stdout after closing
stdout. Use freopen instead.
Paul Eggert [Mon, 11 Apr 2005 20:09:42 +0000 (20:09 +0000)]
Include stdio-safer.h.
(open_file): Use fopen_safer.
(close_file): Don't assume fopen does not return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:09:22 +0000 (20:09 +0000)]
(paste_serial): Don't assume fopen does not return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:09:01 +0000 (20:09 +0000)]
(check_and_close): Don't assume fopen does not return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:08:30 +0000 (20:08 +0000)]
Include unistd-safer.h.
(main): Don't dup stderr to stdin or stdout by mistake.
Paul Eggert [Mon, 11 Apr 2005 20:08:11 +0000 (20:08 +0000)]
(digest_file, digest_check):
Don't assume that fopen does not return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:07:54 +0000 (20:07 +0000)]
Include stdio-safer.h.
(main): Use fopen_safer. Simplify the resulting code.
Paul Eggert [Mon, 11 Apr 2005 20:07:37 +0000 (20:07 +0000)]
(head_file): Don't assume open does not return 0.
Paul Eggert [Mon, 11 Apr 2005 20:07:22 +0000 (20:07 +0000)]
(dc_parse_file): Don't assume fopen does not return stdin.
Paul Eggert [Mon, 11 Apr 2005 20:07:00 +0000 (20:07 +0000)]
Include stdio-safer.h.
(input_desc): Remove unnecessary static initialization.
(set_input_file): Use STDIN_FILENO, not 0.
(create_output_file): Use fopen_safer.
Paul Eggert [Mon, 11 Apr 2005 20:06:34 +0000 (20:06 +0000)]
Include unistd-safer.h.
(copy_reg): Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:06:13 +0000 (20:06 +0000)]
Include stdio-safer.h.
(compare_files): Exit right away on I/O error rather than continuing
and producing confusing output and error messages.
Return void, not int; all callers changed.
Use fopen_safer to avoid confusion with file descriptors.
Paul Eggert [Mon, 11 Apr 2005 20:05:45 +0000 (20:05 +0000)]
Add bulletproofing for cases where stdin, stdout, or stderr are closed.
Paul Eggert [Mon, 11 Apr 2005 20:05:34 +0000 (20:05 +0000)]
(gl_PREREQ): Don't require gl_FCNTL_SAFER.
Paul Eggert [Mon, 11 Apr 2005 20:05:20 +0000 (20:05 +0000)]
(gl_UNISTD_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
Invoke gl_PREREQ_FD_SAFER.
(gl_PREREQ_FD_SAFER): New macro.
Paul Eggert [Mon, 11 Apr 2005 20:04:57 +0000 (20:04 +0000)]
(gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
Paul Eggert [Mon, 11 Apr 2005 20:04:29 +0000 (20:04 +0000)]
Add bulletproofing for cases where stdin, stdout, or stderr are closed.
Paul Eggert [Mon, 11 Apr 2005 20:03:40 +0000 (20:03 +0000)]
(libfetish_a_SOURCES): Remove dup-safer.c,
fcntl-safer.h, fopen-safer.c, open-safer.c, stdio-safer.h,
unistd-safer.h.
Paul Eggert [Mon, 11 Apr 2005 20:03:22 +0000 (20:03 +0000)]
(fd_safer): New decl.
Paul Eggert [Mon, 11 Apr 2005 20:03:04 +0000 (20:03 +0000)]
Include unistd-safer.h.
(save_cwd): Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:02:43 +0000 (20:02 +0000)]
Include stdio-safer.h.
(getusershell): Use fopen_safer.
Paul Eggert [Mon, 11 Apr 2005 20:02:28 +0000 (20:02 +0000)]
Include unistd-safer.h.
(getloadavg): Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:02:06 +0000 (20:02 +0000)]
Include unistd-safer.h.
(fts_safe_changedir): Use fd_safer.
Paul Eggert [Mon, 11 Apr 2005 20:01:46 +0000 (20:01 +0000)]
Include unistd-safer.h first, to test interface.
(dup_safer) [!deefined F_DUPD]: Use new fd_safer function instead of
rolling our own code.
Paul Eggert [Mon, 11 Apr 2005 20:01:20 +0000 (20:01 +0000)]
Initial revision
Jim Meyering [Sun, 10 Apr 2005 13:44:45 +0000 (13:44 +0000)]
(chopt_free): Mark parameter as unused.
Jim Meyering [Sun, 10 Apr 2005 13:41:44 +0000 (13:41 +0000)]
.
Jim Meyering [Sat, 9 Apr 2005 17:29:20 +0000 (17:29 +0000)]
.
Jim Meyering [Sat, 9 Apr 2005 16:29:29 +0000 (16:29 +0000)]
(close_stdout_wrapper): Likewise.
Don't close STDOUT_FILENO explicitly; close_stdout does it.
Jim Meyering [Sat, 9 Apr 2005 14:19:49 +0000 (14:19 +0000)]
(__attribute__, ATTRIBUTE_UNUSED): Define.
Mark parameter `sp' with ATTRIBUTE_UNUSED.
Jim Meyering [Sat, 9 Apr 2005 14:15:22 +0000 (14:15 +0000)]
(quit): Define with ATTRIBUTE_NORETURN.
Now that close_stdout closes standard output unconditionally,
these workarounds for dd and cat are no longer necessary.
(close_stdout_wrapper): Remove function.
(main): Call atexit with close_stdout, instead.
Jim Meyering [Sat, 9 Apr 2005 14:09:00 +0000 (14:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 14:08:57 +0000 (14:08 +0000)]
(__attribute__, ATTRIBUTE_UNUSED): Define.
(exit_failure_callback, fallback_failure_callback): Mark unused
parameters with ATTRIBUTE_UNUSED.
Jim Meyering [Sat, 9 Apr 2005 14:08:30 +0000 (14:08 +0000)]
(canon_host) [HAVE_GETADDRINFO]: Use memset
rather than `= { 0 };' to initialize local `hint'.
Jim Meyering [Sat, 9 Apr 2005 13:57:56 +0000 (13:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 13:57:51 +0000 (13:57 +0000)]
Readability nit:
Change this:
# define __attribute__(x)
to this:
# define __attribute__(x) /* empty */
Jim Meyering [Sat, 9 Apr 2005 13:29:01 +0000 (13:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 13:28:25 +0000 (13:28 +0000)]
(posixtime) [lint]: Avoid spurious warning from gcc-4's
-Wuninitialized: initialize tm0.tm_year.
Jim Meyering [Sat, 9 Apr 2005 12:35:44 +0000 (12:35 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 12:35:41 +0000 (12:35 +0000)]
(humblock): Set *options even when returning due to
xstrtoumax conversion failure. Thanks to a used-uninitialized
warning from gcc-4.
Jim Meyering [Sat, 9 Apr 2005 12:00:36 +0000 (12:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 11:57:02 +0000 (11:57 +0000)]
*** empty log message ***