summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-12-14(tac_nonseekable): Return false also if copy_to_temp fails.Jim Meyering
2004-12-14Include quotearg.h.Jim Meyering
Use quotearg_colon in most diagnostics. (copy_to_temp): Rewrite not to exit upon I/O or temp-file-creation failure. Before, this command (with /full/tmp being a full partition) TMPDIR=/full/tmp ./tac /proc/modules tac.c would exit immediately upon the write error while trying to copy non-seekable /proc/modules to the full partition. Now it still reports the failure but continues on with the remaining file.
2004-12-14(gobble_file): Change arg name to be command_line_argPaul Eggert
rather than explicit_arg, for consistency with copy.c. (extract_dirs_from_files): Remove ignore_dot_and_dot_dot arg, since it is deducible from dirname arg. All callers changed. (extract_dirs_from_files, print_dir, queue_directory): Add command_line_arg arg. All callers changed. (struct pending): Add command_line_arg member. (main): Use NULL rather than 0 when appropriate. (set_exit_status, file_failure): New functions. (queue_directory): Store command_line_arg into new structure. (print_dir, gobble_file, get_link_name): Use file_failure to report problems in accessing files, so that the exit status is set consistently. (print_dir): Simplify readdir failure code yet again. If closedir fails, report "closing directory" rather than "reading directory" failure. (xstrcoll): Use set_exit_status to set status on failure.
2004-12-11Avoid a race condition vulnerability in chown, when used withJim Meyering
--from=O:G and without the (-h) --no-dereference option. (restricted_chown): New function. (change_file_owner): Call it. Reported by Ulrich Drepper.
2004-12-09(LS_MINOR_PROBLEM, LS_FAILURE): New constants.Paul Eggert
All uses of EXIT_FAILURE replaced with LS_FAILURE, unless specified below. (main): Initialize exit failure to LS_FAILURE. (print_dir, gobble_file, get_link_name, xstrcoll): Set exit status to LS_MINOR_PROBLEM if the failure is minor. (print_dir): Do not give up on entire directory merely because readdir returns EOVERFLOW. (usage): Explain exit status.
2004-12-08Undo previous change; it's already there.Paul Eggert
2004-12-08(usage): Mention that input files should be sorted.Paul Eggert
2004-12-07(factor): Don't list 1 as a factor of 1.Paul Eggert
Problem reported by Thomas Folz-Donahue.
2004-12-06.Jim Meyering
2004-12-04(complement, COMPLEMENT_OPTION): New.Jim Meyering
(longopts): Add --complement. (usage): Say not that -b, -c, and -f `print' fields, but rather that they `select' fields for printing. Describe the new --complement option. (mark_range_start): Extracted from set_fields. (print_kth): Support --complement. (compare_ranges): New function. (set_fields): Rewrite the part that populates range_start_ht, merging it with the part that populates printable_field. (main): Handle --complement. From Paolo Bonzini.
2004-12-04(tail_file): Set errnum to -1 if the initial "tail" failed.Paul Eggert
2004-12-02With using --color and with LS_COLORS saying not to colorJim Meyering
executables, don't stat every file. (is_colored): New function. (gobble_file): Use it. (main): Use it here, in place of too-strict tests against NULL: if either ORPHAN or MISSING was set to 0 from LS_COLORS, the old test would fail.
2004-12-02(different): Assume setlocale exists.Paul Eggert
2004-12-02Assume locale.h exists.Paul Eggert
(HAVE_SETLOCALE): Remove.
2004-12-02(C_DECIMAL_POINT): Remove. Use changed to '.'.Paul Eggert
Assume setlocale exists. (thousands_sep): Renamed from th_sep. (IS_THOUSANDS_SEP): Remove. All uses replaced by comparisons. (NONZERO): Parenthesize use of arg. (numcompare): Avoid duplicate loads. Use ISDIGIT as boolean, for consistency. Avoid unnecessary negation by reversing fraccompare args. (main): Rewrite localeconv call to match seq.c.
2004-12-02(decimal_point): Treat like sort. Now char.Paul Eggert
All uses changed.
2004-12-02(keycmp): Assume setlocale exists.Paul Eggert
2004-12-02(compare_files): Assume setlocale exists.Paul Eggert
2004-12-02(sort_files): Minor cleanup. Remove an unnecessaryPaul Eggert
'volatile' on a local variable. Rewrite to avoid unnecessary double-assignment to 'func' in the usual case where strcoll does not fail.
2004-11-30(USER_PROCESS, RUN_LVL, INIT_PROCESS, LOGIN_PROCESS,Paul Eggert
DEAD_PROCESS, BOOT_TIME, NEW_TIME, UT_TYPE_UNDEF, UT_TYPE): Remove. (IS_USER_PROCESS): Move to ../lib/readutmp.h. (UT_TYPE_RUN_LVL, UT_TYPE_INIT_PROCESS, UT_TYPE_LOGIN_PROCESS, UT_TYPE_DEAD_PROCESS, UT_TYPE_NEW_TIME): New macros. (gethostname): Remove decl. (list_entries_who, scan_entries): Use the new macros defined above, for consistency with pinky, uptime, and users.
2004-11-30(list_entries_users): Use IS_USER_PROCESSPaul Eggert
instead of by-hand code.
2004-11-30(print_uptime): Use IS_USER_PROCESS andPaul Eggert
UT_TYPE_BOOT_TIME instead of by-hand code.
2004-11-30(gethostname): Remove decl.Paul Eggert
(scan_entries): Use IS_USER_PROCESS instead of by-hand code. * src/uptime.c (print_uptime): Use IS_USER_PROCESS and UT_TYPE_BOOT_TIME instead of by-hand code.
2004-11-30.Jim Meyering
2004-11-28.Jim Meyering
2004-11-28.Jim Meyering
2004-11-26Regenerate.Paul Eggert
2004-11-26(link, symlink): Remove decls.Paul Eggert
2004-11-26(stat): Remove decl.Paul Eggert
2004-11-26(stat, lstat, rename): Remove decls.Paul Eggert
2004-11-24Since the changes of 2004-05-22, the u.saved_cwd member atJim Meyering
the bottom of the active-directory stack was no longer strictly necessary. This change removes that member and uses the newer cwd_state parameter for the final restore_cwd. (struct AD_ent) [u]: Remove now-unnecessary union. [dev_ino]: Rename from `a'. (AD_pop_and_chdir): Add a parameter to play the role of just-removed bottom-of-stack cwd-state member. (AD_pop_and_chdir): No longer return boolean. Adjust caller. (AD_push_initial): Remove CWD parameter. Adjust caller.
2004-11-23(posix_date): Remove; not needed as a static var.Paul Eggert
All uses rewritten. (touch): Use new futimens function to operate more efficiently in some cases. Don't stat/fstat existing file when (!amtime_now && change_times == (CH_ATIME | CH_MTIME)); the old time stamps aren't needed in that case. (main): change_times is int, not bool. Simplify test for change_times.
2004-11-23tweak commentJim Meyering
2004-11-21(usage): Avoid usage that runs afoul of DocbookPaul Eggert
translation. Problem reported by Eric S. Raymond.
2004-11-20(flags, usage, main): Add noctty flag to dd.Paul Eggert
2004-11-19(usage): Clarified description of --no-group (-G),Jim Meyering
--human-readable (-h), --inode (-i), --size (-s), --time, and --time-style.
2004-11-19(find_dir_entry): Update comment to match reality.Jim Meyering
2004-11-19(usage): Clarify description of --author.Jim Meyering
Tweak indentation so that help2man creates better nroff.
2004-11-19(check_file): Don't check stdout for errors here.Jim Meyering
2004-11-18(robust_getcwd): Correct the comment: this function constructs theJim Meyering
directory name. The caller prints it.
2004-11-17Regenerate.Paul Eggert
2004-11-17(STATFS): New macro, for portability to Solaris 9.Paul Eggert
(do_statfs): Use it.
2004-11-17(main): argv is not const.Paul Eggert
2004-11-17(main): Use getopt_long rather than getopt.Paul Eggert
2004-11-16Add putty, screen-bce.Paul Eggert
2004-11-16(usage): Improve documentation along the lines suggestedPaul Eggert
by Debian 5.2.1-2.
2004-11-16Fix memory leak.Paul Eggert
2004-11-16(C_ASCII, C_EBCDIC, C_IBM, C_BLOCK, C_UNBLOCK,Paul Eggert
C_LCASE, C_UCASE, C_SWAB, C_NOERROR, C_NOTRUNC, C_SYNC, C_TWOBUFS, C_NOCREAT, C_EXCL, C_FDATASYNC, C_FSYNC): Now constants, not macros. (STATUS_NOXFER, statuses): New constants. (usage, print_stats, scanargs): Add support for status=noxfer. (usage): Update status output to match new behavior. (print_stats): Always output complete byte count. Put space between numbers and units, as SI requires. Use ngettext so that i18n can use plurals for "byte" and "second". Don't multiply by 1e-9 (inexact); divide by 1e9 (which is exact). (iflag_error_msgid, oflag_error_msgid): Remove; replace uses by the string.
2004-11-15Include "human.h".Paul Eggert
(w_bytes, start_time): New vars. (usage): Document new I/O statistics output (print_stats): Output new I/O statistics. (cleanup): Do statistics after closing stdin and stdout, so that the times are more accurate. (write_output, dd_copy): Count output bytes. (main): Get initial value of clock.
2004-11-15(dd_LDADD): Add $(LIB_CLOCK_GETTIME).Paul Eggert