summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-11-18revert mysteriously-applied last delta!Jim Meyering
2000-11-17Declare global `tab' to be of type *unsigned* char,Jim Meyering
so join works with 8-bit delimiter characters.
2000-11-17Explicitly include sys/types.h before including system.h.Jim Meyering
2000-11-16Include sys/types.h before system.h.Jim Meyering
2000-11-16Declare global `tab' to be of type *unsigned* char,Jim Meyering
so join works with 8-bit delimiter characters. Reported by Antonio Rendas.
2000-11-13(ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC shouldJim Meyering
be tested with #ifdef, not with #if.
2000-11-12(print_long_format): Remove obsolete comment (strftime vs. ctime).Jim Meyering
From Paul Eggert.
2000-11-12(show_date): Add a comment explaining why theJim Meyering
format string must not be translatable via _(). From Paul Eggert.
2000-11-12(<langinfo.h>): Include if HAVE_LANGINFO_H.Jim Meyering
(DATE_FMT_LANGINFO): New macro, taken from sh-utils/src/date.c. (print_long_format): Use it to determine "date" format. Do not wrap "%b %e %Y" and "%b %e %H:%M" in _(), as it results in incorrect behavior when LC_ALL is unset, LC_TIME is "C", and LC_MESSAGES or LANG is set to something disagreeing with the POSIX locale.
2000-11-11(print_long_format): Wrap the --full-time' date formatJim Meyering
string in _(...), so it too may be internationalized. Suggestion from Jungshik Shin.
2000-11-10(main): Interpret a lone numeric argument of 8 or 10Jim Meyering
digits as a file name, rather than as a date/time in the obsolescent `MMDDhhmm[YY]' format. Reported by Wenjun Zheng.
2000-11-09Do not set the permissions of the final directoryJim Meyering
component if it was not just created. Based on a patch from Volker Borchert.
2000-11-06(print_header): Mark strings for translation.Jim Meyering
2000-11-06(skip): st_size is not defined for directories.Jim Meyering
2000-11-05(main): Use make_dir instead of using mkdir directly.Jim Meyering
Diagnose as failure when mkdir tries to create (without the --parent (-p) option) a directory that already exists.
2000-11-01remove const attribute for PARENTSJim Meyering
2000-11-01Fix bad typo! free the string, PARENTS, not the function, dir_name.Jim Meyering
2000-11-01(main): Better diagnostics.Jim Meyering
2000-10-31`mkdir -p' would create parent directories with permissionsJim Meyering
that did not account for the umask. [introduced with the 2000-09-30 change that became part of fileutils-4.0.28] Include dirname.h. Compute the parent directory `mode' unconditionally, effectively as `$(umask -S),u+wx'. Use make_path to create only the parent directories, thus using the same code, both with and without -p, to create the final component in each file name. Reported by Bob Proulx.
2000-10-30Include "system.h" after wctype.h (not before) to avoidJim Meyering
a compilation error on Solaris 5.5.1 systems.
2000-10-29(do_copy): When constructing dst_path for use with theJim Meyering
--parents option, first remove any trailing slashes from the command line argument. Otherwise, tests/cp/cp-parent would fail on NetBSD.
2000-10-29(DT_INIT): Define.Jim Meyering
[enum filetype]: Remove the #ifdef, and use DT_INIT on the initializers instead.
2000-10-28[enum filetype] (arg_directory): Rather than `100', useJim Meyering
a number that should never conflict with another DT_* value. From Ulrich Drepper.
2000-10-28(main): In call to gobble_file with `"."', use `directory'Jim Meyering
as the type, not `unknown'. From Ulrich Drepper.
2000-10-28Make `ls' a lot more efficient on systems (e.g., linux-2.4.*)Jim Meyering
that save file type information in directory entries. [enum filetype] (unknown): Add members (as yet unused): (HAVE_STRUCT_DIRENT_D_TYPE): Define. (format_needs_type): New global. (main): Set it. (print_dir): Set `type' from directory entry, if possible. (gobble_file): Add a parameter, TYPE. Stat the file only if its type is unknown and we need the type. Patch from Ulrich Drepper.
2000-10-28Include assert.h.Jim Meyering
(fillrand): Add a parameter, size_max. Add an assertion. Adjust caller. (dopass): Break out of the `for (;;)' loop if size < offset. That can happen now that dopass is called with SIZE == -1. (do_wipefd): Accept a length of zero only for a regular file. If lseek fails or returns 0 for a non-regular file, let dopass determine the length. Inspired by a patch from Alan Iwi.
2000-10-26(usage): Mention the time zone, UTC, and write the dateJim Meyering
in ISO format in the description of %s. Suggestion from Karl Berry.
2000-10-25Include dirname.h.Jim Meyering
(main): Use dir_name_r rather than open-coding it.
2000-10-22include stdio.hJim Meyering
2000-10-22renamed from shasum.cJim Meyering
2000-10-22fix typoJim Meyering
2000-10-22(print_long_format): Wrap date format strings in _(...)Jim Meyering
so they may be internationalized. Suggestion from Christian Rose.
2000-10-22(make_path_private): Add a FIXME comment.Jim Meyering
2000-10-22.Jim Meyering
2000-10-22Factor out the differences between MD5 and SHA1,Jim Meyering
and parameterize so this code may be used by both md5sum and the new program, shasum. Loosely based on a patch from Scott Miller.
2000-10-22Support 8-byte integers, assuming they're printable with e.g., %lld.Jim Meyering
Add support for printing data as unsigned long long integers.
2000-10-22add missing backslashJim Meyering
2000-10-21The command, `yes ''|./cat -n' would stop printing after INT_MAX lines.Jim Meyering
(cat): Never let `newlines' exceed 3.
2000-10-21Prevent a counter buffer overrun when numbering lines and whenJim Meyering
processing 100 billion lines (or more) of input. (LINE_COUNTER_BUF_LEN): Define to allow numbering as many as 10^18 - 1 lines (the old limit was 10^11 - 1, and could be exceeded without too much trouble). Use this symbol rather than hard-coding the constant everywhere. Rather than overruning for input with more lines, mark the line number by putting a `>' in the leftmost slot. (next_line_num): Fixed (now academic) possible line buffer overrun. Patch by Jan Nieuwenhuizen.
2000-10-21(SORT_OUT_OF_ORDER): Define.Jim Meyering
(main): Use it instead of hard-coding the `1'.
2000-10-21(main): Use EXIT_SUCCESS rather than 0.Jim Meyering
Fail when checking (-c) with more than one file argument, rather than simply ignoring the extra arguments.
2000-10-18(universal_time): Remove; it's just a temptation to do the wrong thing.Jim Meyering
(main): The -u option now just sets TZ; it doesn't do anything else. (show_date): Do not do anything special if -u is set. This affects the behavior of the -I and -R options.
2000-10-18Undo the effect of the 1997-07-12 change to date.c; itJim Meyering
broke "date -u MMDDhhmm" and it wasn't documented. This reverts to the behavior of the 1996-01-03 patch. (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove. (batch_convert): Don't futz with TZ. (main): -u now parses all dates as UTC, not just some.
2000-10-16fix spell-o in commentJim Meyering
2000-10-16(rm_option_init): Remove FIXME-maybe comment.Jim Meyering
2000-09-30(main): Rename local `symbolic_mode' to `specified_mode'.Jim Meyering
2000-09-30(change_file_mode): Perform the chmod even if theJim Meyering
file mode permission bits are the same as those that should be set. Omitting the chmod call would be alright with minimal 1003.1e DS17 ACLs, but eventually there will be other permissions in addition to rwx. E.g., add and delete for directories, and something analogous to NT's take ownership permission.
2000-09-30(main): Don't set the umask to 0 and hand-applyJim Meyering
the previously-set umask unconditionally. Do that only when a MODE has been specified. Otherwise, call mkfifo with the full creation mask (0777 or 0666) and let the kernel apply the umask. The difference shows up only on file systems with ACL support when the containing directory has a default ACL. Patch by Andreas Gruenbacher. (main): Rename local `symbolic_mode' to `specified_mode'. Also, when MODE is specified, call chmod to ensure that the permission bits are set as specified even when the containing directory has a default ACL.
2000-09-30(main): Rename local `symbolic_mode' to `specified_mode'.Jim Meyering
2000-09-30(main): Don't set the umask to 0 and hand-applyJim Meyering
the previously-set umask unconditionally. Do that only when a MODE has been specified. Otherwise, call mknod with the full creation mask (0777 or 0666) and let the kernel apply the umask. The difference shows up only on file systems with ACL support when the containing directory has a default ACL. Patch by Andreas Gruenbacher. (main): Rename local `symbolic_mode' to `specified_mode'. Also, when MODE is specified, call chmod to ensure that the permission bits are set as specified even when the containing directory has a default ACL.