Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
|
|
|
|
(main): Add two sets of curly braces for readability.
|
|
|
|
Add __P in fwd dcl.
|
|
|
|
[:upper:] to [:upper:] and [:lower:] to [:lower:].
(main) [POSIXLY_CORRECT]: Give a more specific diagnostic for the
identity mappings [:upper:] to [:upper:] and [:lower:] to [:lower:].
(class_ok): Update table to reflect that tr now allows these
identity mappings.
|
|
|
|
if it's a regular file.
(print_type_indicator): Use S_IXUGO instead of writing out
(S_IEXEC | S_IXGRP | S_IXOTH).
(length_of_file_name_and_frills): Likewise.
|
|
|
|
files. Suggestion from Charles Karney.
|
|
(usage): Document it.
|
|
with Solaris. From Peter Eriksson.
|
|
Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
|
|
instead of open-coding them. When given FILE containing no slashes,
chdir to the directory containing it (the current directory) rather
than to `..'.
|
|
"save-cwd.h": New include.
(show_dev): Deal with null values for DISK and FSTYPE,
including interpreting special 0 errno return from get_fs_usage.
(show_point): Don't fail if we can't find a mount entry for POINT,
just call show_dev with 0 values and let it fail if necessary.
(main): Require a non-zero MOUNT_LIST only if showing all filesystems.
(find_mount_point): New function.
(xgetcwd): New declaration.
All from Miles.
|
|
avoid new warning from gcc.
|
|
so that blanks are not unconditionally ignored when computing start
and end positions for numeric keys. Reported by Markus Demleitner.
|
|
trying to get a size from both stdin and stdout.
Update callers.
Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
|