summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-06-08.Jim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08Test that chgrp -h does not fail onJim Meyering
symlinks, even on hosts where that's not supported. Test that if -R is specified without -H or L, -h is assumed. Test that chown() is not optimized away.
2004-06-08s/FTS_STAT/FTS_NOSTAT/Jim Meyering
2004-06-08Adjust error-diagnostic spelling to match new behavior.Jim Meyering
2004-06-08Do not attempt to combine -h and -H; theseJim Meyering
options are incompatible, and their behavior is undefined with POSIX. (changed, not_changed): Adjust to match the fact that -h is no longer specified. Sort names.
2004-06-08Use chown --from to discover whether theJim Meyering
group changed, since chgrp now changes unconditionally. This complicates the sed script a bit. Do not specify --dereference, since it's the default (and we want to test this). Adjust output to match the fact that chgrp no longer optimizes the case of changing a file's group to the same value as before.
2004-06-08.Jim Meyering
2004-06-08.Jim Meyering
2004-06-08(change_file_owner): Use ent->fts_statp only ifJim Meyering
needed. Chown a directory only after chowning its children; this avoids problems if the new directory ownership doesn't permit access to the children. Dereference symlinks before doing ROOT_DEV_INO_CHECK, not after, so that we catch symlinks to /. Do not optimize away the chown() system call when the file's owner and group already have the desired value. POSIX does not permit this optimization. Rely on chown and lchown to do the right thing with symlinks and/or -1 arguments, now that we have wrappers to do this. Use ENOTSUPP not ENOSYS, and ignore all ENOTSUPP errors, not just command-line errors. (chown_files): Pass FTS_STAT to xfts_open if we don't need file status.
2004-06-08(main): Check for incompatible options. -R --dereferenceJim Meyering
requires either -H or -L, and -R -h requires -P. If -H, specify FTS_PHYSICAL as well as FTS_COMFOLLOW; this is faster. Make this file as much like chown.c as possible.
2004-06-08(main): Check for incompatible options. -R --dereferenceJim Meyering
requires either -H or -L, and -R -h requires -P. If -H, specify FTS_PHYSICAL as well as FTS_COMFOLLOW; this is faster. Make this file as much like chgrp.c as possible.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(fts_stat, fts_alloc): Always allocate and use a structJim Meyering
stat, even if the user isn't interested in the results. This prevents a core dump in cycle_check when FTS_NOSTAT is set.
2004-06-08(ENOTSUP): Remove.Jim Meyering
2004-06-08fix typoJim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(EOPNOTSUPP): Define if not defined.Jim Meyering
(ENOSYS): Remove.
2004-06-08(lchown): Return EOPNOTSUPP if not supported; thisJim Meyering
is what POSIX-2004 specifies.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(main): Fix typo introduced on 2003-05-10 thatJim Meyering
prevented a diagnostic of any operands.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08.Jim Meyering
2004-06-08(direct_mode): Turn it on/off with directio, too.Jim Meyering
2004-06-07*** empty log message ***Jim Meyering
2004-06-07Enable direct-mode I/O (bypassing the buffer cache), if possible.Jim Meyering
Prompted by a suggestion from Kalle Olavi Niemitalo in http://bugs.debian.org/207035. (direct_mode): New function. (do_wipefd): Turn on direct-mode I/O. (dopass): If a file's first write fails with EINVAL, turn off direct-mode I/O and retry the write.
2004-06-07*** empty log message ***Jim Meyering
2004-06-07(gl_MACROS): Check for the directio function.Jim Meyering
2004-06-07*** empty log message ***Jim Meyering
2004-06-07Remove menu references to just-removed subsection.Jim Meyering
2004-06-06*** empty log message ***Jim Meyering
2004-06-06(tr invocation): Remove the section describingJim Meyering
how POSIXLY_CORRECT changes tr's behavior.
2004-06-06fix typo in commentJim Meyering
2004-06-06*** empty log message ***Jim Meyering
2004-06-06Update from gnulib.Jim Meyering
2004-06-06*** empty log message ***Jim Meyering
2004-06-06(main): "tr -d a b" is now a fatal error even if POSIXLY_CORRECT is set.Jim Meyering
The POSIX SYNOPSIS does not allow this option combination.
2004-06-04*** empty log message ***Jim Meyering
2004-06-04(dopass): Don't subtract 1 from the offset afterJim Meyering
a write error. Problem reported by Jon Peatfield in: http://lists.gnu.org/archive/html/bug-coreutils/2004-06/msg00020.html
2004-06-03*** empty log message ***Jim Meyering
2004-06-03*** empty log message ***Jim Meyering
2004-06-03Fix bug reported by Buciuman Adrian inJim Meyering
<http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00105.html> where 'dd' created a file that was too large. The bug was that dd assumed that the input file offset does not advance after a failed read; but POSIX says that the input file offset is undefined after a failed read. (MAX_BLOCKSIZE): New macro. (input_seekable, input_seek_errno, input_offset, input_offset_overflow): New vars. (scanargs): Reject block sizes greater than MAX_BLOCKSIZE. (advance_input_offset): New function. (skip_via_lseek): Set errno to zero when reporting our failure, so that we don't report based on garbage errno. (skip): If fdesc is standard input, advance the input offset. Do not quit if reading, and if noerror was specified; POSIX seems to require this. If read fails on output file, report the earlier lseek failure instead; this fixes a FIXME in dd_copy. (advance_input_after_read_error): New function. (dd_copy): Use it, instead of assuming that failed reads do not advance the file pointer. Advance input offset after nonfailed reads. Advance only a partial block if the previous read (before the failed read) succeeded, and do not generate an output block of zeros in this case. (main): Determine initial input offset, seekability of input, and error if it wasn't seekable.
2004-06-02*** empty log message ***Jim Meyering
2004-06-02*** empty log message ***Jim Meyering
2004-06-02rm (without -f) could hang unnecessarily when attempting toJim Meyering
remove a symlink to a file on an off-line NFS-mounted partition. Reported by David Howells in https://bugzilla.redhat.com/124699. (write_protected_non_symlink): New function. Don't invoke euidaccess on symlinks. (prompt): Use write_protected_non_symlink rather than using euidaccess directly, being careful not to call lstat twice for a file.
2004-06-02*** empty log message ***Jim Meyering
2004-06-02(cut invocation): Clarify what --output-delimiter=STRJim Meyering
does with byte/character ranges.
2004-06-02.Jim Meyering
2004-06-02*** empty log message ***Jim Meyering