diff options
author | Jim Meyering <jim@meyering.net> | 2005-09-20 17:48:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-09-20 17:48:02 +0000 |
commit | d6b83b2f9b3e436189e67ecd74123c7ef42c2b2c (patch) | |
tree | d5f46bca3a83f76b41fd3f052b25f7bc18518914 /src | |
parent | b0ecfaf32426133599051045acb48b760b2a55ae (diff) | |
download | coreutils-d6b83b2f9b3e436189e67ecd74123c7ef42c2b2c.tar.xz |
(write_protected_non_symlink): Change comment to agree with the code.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c index 65fdbee75..6572245fd 100644 --- a/src/remove.c +++ b/src/remove.c @@ -544,8 +544,8 @@ is_empty_dir (char const *dir) return saved_errno == 0 ? true : false; } -/* Return true if FILE is not a symbolic link and it is not writable. - Also return true if FILE cannot be lstat'ed. Otherwise, return false. +/* Return true if FILE is determined to be an unwritable non-symlink. + Otherwise, return false (including when lstat'ing it fails). If lstat succeeds, set *BUF_P to BUF. This is to avoid calling euidaccess when FILE is a symlink. */ static bool |