<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/remove.c, branch v8.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-03-10T10:05:18Z</updated>
<entry>
<title>remove: without -f, avoid unnecessary-expense/issues with euidaccess</title>
<updated>2010-03-10T10:05:18Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-03-06T12:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=998fe29301083246f16738a5f42ccb9d15fd85ea'/>
<id>urn:sha1:998fe29301083246f16738a5f42ccb9d15fd85ea</id>
<content type='text'>
* src/remove.c (write_protected_non_symlink): If faccessat fails,
return 1 or -1 directly, rather than falling back on euidaccess*.
</content>
</entry>
<entry>
<title>remove.c: remove three unnecessary #include directives</title>
<updated>2010-02-15T18:26:30Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-02-14T10:25:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=58c98f23429b17ce9b90bc92fe31fa027edeec91'/>
<id>urn:sha1:58c98f23429b17ce9b90bc92fe31fa027edeec91</id>
<content type='text'>
* src/remove.c: Don't include hash.h, hash-pjw.h or obstack.h.
They have been unused since the fts rewrite.
</content>
</entry>
<entry>
<title>maint: update all FSF copyright year lists to include 2010</title>
<updated>2010-01-01T13:06:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-01-01T09:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1aa17dc89b3f313697661541adca0aa0defbdc09'/>
<id>urn:sha1:1aa17dc89b3f313697661541adca0aa0defbdc09</id>
<content type='text'>
Use this command:
git ls-files | grep -v COPYING \
  | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      build-aux/update-copyright
</content>
</entry>
<entry>
<title>rm: fix --one-file-system regression due to fts conversion</title>
<updated>2009-12-19T01:14:07Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-12-18T12:26:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d64c186d8e28d99ece16e591f6823a1da904ac44'/>
<id>urn:sha1:d64c186d8e28d99ece16e591f6823a1da904ac44</id>
<content type='text'>
* src/remove.c (rm_fts): Fix incorrect comparison of
device and inode numbers.
* tests/rm/one-file-system2: Add a separate test so
that it can be run as a normal user (It doesn't need to mount).
* tests/Makefile.am: Reference it.
* NEWS: Mention the fix.
Reported by Jan Larres.
</content>
</entry>
<entry>
<title>maint: factor out cycle warning, now that du will use it, too</title>
<updated>2009-11-05T07:32:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-05T07:32:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=38cb824673a53062ab0d2ee843cdf58affc17e04'/>
<id>urn:sha1:38cb824673a53062ab0d2ee843cdf58affc17e04</id>
<content type='text'>
* src/system.h (emit_cycle_warning): Define.  Factored out of...
* src/remove.c (rm_fts): ...here.  Use the new macro.
</content>
</entry>
<entry>
<title>rm -f: ignore EROFS when it's really ENOENT</title>
<updated>2009-11-03T13:14:00Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-03T11:01:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7bf2e3db23bd0a9ed59d95a683edd188fa52a033'/>
<id>urn:sha1:7bf2e3db23bd0a9ed59d95a683edd188fa52a033</id>
<content type='text'>
rm -f must not print a diagnostic for a nonexistent file.  However,
most linux-based kernel unlinkat functions set errno to EROFS when
the named file (regardless of whether it exists) would lie on a
read-only file system.  remove.c now performs an extra fstatat call
in that case, to determine whether the file exists.
* src/remove.c (excise): Map EROFS to ENOENT, if a file is nonexistent.
Reported by Steven Drake in &lt;http://savannah.gnu.org/bugs/?27923&gt;.
* NEWS (Changes in behavior): Mention it.
</content>
</entry>
<entry>
<title>rm: avoid compiler warning</title>
<updated>2009-09-11T12:08:58Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-09-04T04:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=398749b0cc49773320e6bc56eafabe7e85437412'/>
<id>urn:sha1:398749b0cc49773320e6bc56eafabe7e85437412</id>
<content type='text'>
* src/remove.c (rm_fts): Don't allow fall-through when assertions
are disabled.
</content>
</entry>
<entry>
<title>rm: use gnulib faccessat</title>
<updated>2009-09-11T12:08:58Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-09-04T03:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c7563435034fe72cb7fa4f8129062f18eef2906d'/>
<id>urn:sha1:c7563435034fe72cb7fa4f8129062f18eef2906d</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add faccessat.  Replace strdup
with strdup-posix.
* m4/jm-macros.m4 (coreutils_MACROS): Revert previous change, now
that gnulib does it for us.
* src/remove.c (write_protected_non_symlink): Use faccessat in
more situations.
</content>
</entry>
<entry>
<title>rm: improve efficiency of rm -r (without -f) from O(N^2) to O(N)</title>
<updated>2009-09-11T12:08:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-09-03T13:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=722287e443c93e04e724e2812857a395cfab0b60'/>
<id>urn:sha1:722287e443c93e04e724e2812857a395cfab0b60</id>
<content type='text'>
where N is the depth of the deepest hierarchy rm is processing.
* src/remove.c (write_protected_non_symlink): Use faccessat to
avoid O(N)-per-entry cost of calling euidaccess.
* m4/jm-macros.m4 (coreutils_MACROS): Check for faccessat.
* NEWS (Improvements): Mention it.
</content>
</entry>
<entry>
<title>build: placate gcc's new -Wskip-jump-init</title>
<updated>2009-09-11T12:08:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-15T15:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9966c92dd4851db611ad88fc1eb68b01fffcaea3'/>
<id>urn:sha1:9966c92dd4851db611ad88fc1eb68b01fffcaea3</id>
<content type='text'>
* remove.c (rm_fts): Put braces around each of the two offending blocks.
* configure.ac: Don't turn off -Wjump-misses-init.
With the rewrite of remove.c, it is no longer needed.
</content>
</entry>
</feed>
