Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
(change_attributes): Unlink the destination file
if either of the chown or the chmod calls fails. Don't even attempt
the chmod if the chown fails.
Suggestion from Marc Olzheim.
|
|
(touch): Add O_NOCTTY to the flags passed to open.
|
|
|
|
|
|
|
|
for that purpose instead.
(count_entry): Also save the directory if we're saving more
than one level.
Fix file descriptor and memory leak when chdir fails.
|
|
(main): No longer perform explicit chmod when creating
parent directories, since make_path now does the chmod.
|
|
|
|
(enum) [FROM_OPTION]: New member.
(long_options): New getopt spec.
(change_file_owner): Add old_user, old_group parameters. Use them.
(change_dir_owner): Likewise.
(usage): Describe.
(main): New case.
|
|
|
|
Doesn't seem useful.
(usage): Remove description.
|
|
(enum) [STRIP_TRAILING_SLASHES_OPTION]: New member.
(remove_trailing_slashes): New global.
(long_opts): New getopt spec.
(usage): Describe.
(do_copy): Strip trailing slashes on SOURCE names only if the new
option has been specified.
(main): New case.
|
|
|
|
|
|
remove unnecessary uses of `defined' (aesthetics).
|
|
|
|
From Karl Berry.
|
|
required by rfc822. Before, in the de_DE locale, date would
print the German weekday and month abbreviations.
|
|
|
|
to colorize links as for the file/directory pointed to.
|
|
optional argument, the -b option accepts none.
(main): Use `backup type' in call to xget_version, not the
now-deprecated `--version-control'.
|
|
optional argument, the -b option accepts none.
(main): Use `backup type' in call to xget_version, not the
now-deprecated `--version-control'.
|
|
(DATE_FMT_LANGINFO): New macro.
(show_date): Use it to get the locale-specific default format for
"date" if it exists.
|
|
|
|
(O_BINARY, O_TEXT): Define if necessary.
(SET_BINARY, SET_BINARY2): Define.
(DEV_BSIZE): Define to BBSIZE if appropriate.
|
|
|
|
(initbuf, findlines): Set it.
(fillbuf): Do not double the size of a full buffer to append a newline
unless the buffer is known to be newline free.
|
|
marke it as such and ignore it forever after.
(struct File_spec): New member.
(recheck): Initialize new member.
(tail_file): Likewise.
(tail_forever): Skip the file if it's marked as ignorable.
|
|
Revert most of 1999-10-20 change. Instead, ...
(IS_TAILABLE_FILE_TYPE): Define to produce similar result.
(recheck): Use it here.
(tail_file): Use it here.
|
|
(usage): Mention \u and \U directives. \x outputs a byte, not a
character.
(print_esc): Implement \u and \U.
|
|
|
|
[CREPRINT && !CRPRNT] (CRPRNT): Define.
(control_info): Recognize HPUX's CREPRINT.
|
|
`while' loop where it's used.
|
|
building on a suggestion by Charles Randall.
(fillbuf): Skip memmove if it would be a no-op,
as many memmove implementations are slow in that case.
Don't examine leftover bytes for eolchar, since they may be left
over from a previous file, and we want to read from this file.
(sort): At end of file, if there is more input and buffer room,
concatenate the next input file.
|
|
|
|
prefixes that are loop file system mount points, since they
yield undesirable output.
|
|
|
|
option characters. Reported by John Summerfield.
|
|
to placate HPUX's C compiler. Reported by Bob Proulx.
|
|
|
|
|
|
now that autoconf always defines the HAVE_DECL_ symbols.
|
|
Based on a patch from Adam Klein via Michael Stone.
|
|
(count_entry): Factor out common code (pop_dir), and call the new
function instead.
Move declaration of global, `stat_buf' into this function.
(du_files): Don't stat `.' or call save_cwd, since count_entry
never returns with a changed working directory.
|
|
|
|
Print the header line only if there is at least one valid argument.
Reported by Andy Longton <alongton@metamark.com>
|
|
to go along with corrected autoconf test: Reported by G Queri.
|