Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
more malformed obsolescent options. Makes for better diagnostics.
|
|
(parse_obsolescent_option): New function.
(main): Use the new functions instead of open-coding them.
This better fixes the bug in handling obsolescent `+Nc' options.
General cleanup.
|
|
the `obsolescent' usage (e.g., tail +2c). It didn't work.
Reported by Karl Heuer.
|
|
(<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getopt.c by not modifying optind before the first getopt_long call
in main. With suggestions from Ulrich Drepper.
|
|
due to pathologically long strings in locale tables. Patch from Paul Eggert.
(print_long_format): Change references to BIGBUF in use of FPUT macro
to references to BUF.
Use 11 (not 20) bytes for mode string buffer.
|
|
|
|
|
|
ctime-oriented code. With internationalization and strftime,
you can't presume that %a expands to a 3-byte string.
Reported by Ross Ridge.
|
|
This avoids uninitialized memory reads in close_file.
|
|
rather than heap for a 15-byte temporary buffer.
|
|
Quoting Joakim:
1) The "total" number and the size of the first file as
output from 'ls --color -s' did not get colorized according
to the "no"-argument in LS_COLORS. Fixed by adding a function
prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT
strings (or C_END). It is called from main before any text is
output, and from print_name_with_quoting after having output a
colorized filename.
2) If the "no"-argument of LS_COLORS is set, the terminal will be
set to print in that color after ls exits. The man-pages suggests
setting "no" and "fi" to the terminals default colors to avoid
the problem, but that would mean I can't use anything but the
default color for regular files and non-filename text. Fixed by
outputting C_LEFT immediately followed by C_RIGHT right before
exit, which restores the default color.
|
|
|
|
(POS_AFTER_TAB): Cleaned up definition and renamed from pos_after_tab.
|
|
|
|
(UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
Patch from Kaveh R. Ghazi.
|
|
printf statements to accomodate default maximum of 2048 characters
for Irix-4.0.5. Reported by Kaveh Ghazi.
|
|
|
|
|
|
|
|
rather than hard-coding /etc/utmp.
|
|
|
|
|
|
Now only --print-database remains. Although it wasn't documented,
--print-data-base was still accepted. But it made `--p', `--print',
`--print-data', etc. ambiguous.
|
|
color and set linkok to reflect existence of referent.
Patches from Joakim Rosqvist, James Antill, and Jesse Thilo.
|
|
[_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
[_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
From Rik Faith.
|
|
that yields nonzero only on ASCII digits.
(ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
used to have. From Paul Eggert.
|
|
(DO_CHOWN): Take an additional parameter.
(LINK_CHOWN): Remove macro.
(copy): When preserving owner and group of a symlink, use
chown only if ROOT_CHOWN_AFFECTS_SYMLINKS and EUID == 0.
Otherwise, the chown would affect the file referenced through the symlink.
|
|
|
|
unnecessary comparison of digit to '\0'.
|
|
(inittables): Remove initialization of `digits'.
(fraccompare, numcompare, main): Use ISDIGIT (x) instead of digits[x].
(fraccompare, numcompare): Avoid casts to unsigned char that are no
longer needed.
|
|
ISDIGIT to test for characters in CC_DIGIT class.
|
|
From Karl Berry.
|
|
|
|
conflicted with the one on i386-pc-isc3.0, now that I've removed the
AC_ISC_POSIX macro and _POSIX_VERSION is no longer defined.
|
|
Patch from Kaveh Ghazi.
|
|
Patch from Karl Heuer.
|
|
|
|
From Michel Robitaille.
|
|
|