<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/remove.c, branch v6.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2007-01-17T16:15:20Z</updated>
<entry>
<title>Make "rm --interactive=never ..." never prompt.</title>
<updated>2007-01-17T16:15:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-17T16:02:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0928c2414ab21682600e6572bc628a405fb1ea80'/>
<id>urn:sha1:0928c2414ab21682600e6572bc628a405fb1ea80</id>
<content type='text'>
* NEWS: Mention this.
* src/remove.h (enum rm_interactive): New ternary type.
(struct rm_options) [interactive]: Use it, here -- rather than bool.
* src/remove.c (prompt): Reflect type change.
* src/mv.c (rm_option_init): Initialize to RMI_NEVER now.
* src/rm.c (main): Add a FIXME comment for '-d' option.
Adapt to type change of rm_options.interactive.

* tests/rm/i-never: New file.  Test for the above fix.
* tests/rm/Makefile.am (TESTS): Add i-never.
</content>
</entry>
<entry>
<title>* src/remove.c (remove_dir): Don't use errno in diagnostic.</title>
<updated>2007-01-15T09:39:32Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-15T09:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1e23a1785a26137d0e35fc9901e0840f6fbc57f9'/>
<id>urn:sha1:1e23a1785a26137d0e35fc9901e0840f6fbc57f9</id>
<content type='text'>
Root-only test failure reported by Alex van Hout and Jon Grosshart in
&lt;http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9415/focus=9415&gt;.
</content>
</entry>
<entry>
<title>Clean up after the change of 2006-12-28.</title>
<updated>2006-12-30T15:12:23Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-12-30T15:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d08d66ebc603295edacdc7fd26f5de0e9aef5b2d'/>
<id>urn:sha1:d08d66ebc603295edacdc7fd26f5de0e9aef5b2d</id>
<content type='text'>
* src/remove.c (AD_pop_and_chdir): Change **DIRP parameter to *DIRP,
now that this function never modifies the pointer.  Adjust comments
and code accordingly.
(remove_dir): Set "dirp" to NULL right after AD_pop_and_chdir call,
now that AD_pop_and_chdir no longer does that.
</content>
</entry>
<entry>
<title>When moving "up" the hierarchy, be careful to remove a just-emptied</title>
<updated>2006-12-28T18:37:07Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-12-28T18:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=88891aef7e24be24b3de49c91c25dc2049d08ffd'/>
<id>urn:sha1:88891aef7e24be24b3de49c91c25dc2049d08ffd</id>
<content type='text'>
directory before opening ".", to avoid trouble with file system
implementations that cache readdir results at opendir-time.
* src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter.
Don't update **DIRP.  Don't call fdopendir here.
(remove_dir): Call fdopendir here instead.
Report and patch from Mikulas Patocka:
&lt;http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html&gt;
</content>
</entry>
<entry>
<title>"rm -rf /etc/motd" (run by non-root) now prints a diagnostic.</title>
<updated>2006-12-21T07:58:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-12-20T18:56:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c8ef95eaed944ec70ccd70c077cf465c6311c1b6'/>
<id>urn:sha1:c8ef95eaed944ec70ccd70c077cf465c6311c1b6</id>
<content type='text'>
* src/remove.c (remove_entry): Handle EACCES for a non-directory, too.
Karl Berry reported that a cross-partition "mv /etc/issue ~"
failed with the um,... suboptimal diagnostic,
"mv: cannot remove `/etc/issue': Not a directory".
* tests/rm/Makefile.am (TESTS): Add fail-eacces.
* tests/rm/fail-eacces: New file.
* NEWS: Mention that both mv and rm are affected.
</content>
</entry>
<entry>
<title>* src/remove.c (fd_to_subdirp): Remove unused parameter, ds.</title>
<updated>2006-11-26T17:47:54Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-11-26T17:47:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5e2f415d172e8074e6e3d051c310fd460feb6205'/>
<id>urn:sha1:5e2f415d172e8074e6e3d051c310fd460feb6205</id>
<content type='text'>
Update callers.
</content>
</entry>
<entry>
<title>Port parts of the code to C89 to minimize the need for c99-to-c89.diff,</title>
<updated>2006-11-26T16:40:38Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-11-26T10:02:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=17a7d2c81b0085c1f4b2879f2da9c1cdb7e6bb1b'/>
<id>urn:sha1:17a7d2c81b0085c1f4b2879f2da9c1cdb7e6bb1b</id>
<content type='text'>
while trying to retain the readability of C99 as much as possible.
* src/remove.c (close_preserve_errno): Remove.
(fd_to_subdirp): Rewrite to avoid the need for decl after statement.

Signed-off-by: Paul Eggert &lt;eggert@cs.ucla.edu&gt;
</content>
</entry>
<entry>
<title>* src/remove.c (rm): Move cycle_check_init call into callee...</title>
<updated>2006-11-26T16:40:37Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-11-25T10:13:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a23c91026d542709fa28163e9072be191ff44157'/>
<id>urn:sha1:a23c91026d542709fa28163e9072be191ff44157</id>
<content type='text'>
Use an else clause in place of a "continue" statement.

Signed-off-by: Paul Eggert &lt;eggert@cs.ucla.edu&gt;
</content>
</entry>
<entry>
<title>* src/remove.c (AD_ensure_initialized): New function.</title>
<updated>2006-11-26T16:40:16Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-11-25T10:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ce71652fc07fae67ddb5254856dd030502d509c'/>
<id>urn:sha1:1ce71652fc07fae67ddb5254856dd030502d509c</id>
<content type='text'>
after statement.

Signed-off-by: Paul Eggert &lt;eggert@cs.ucla.edu&gt;
</content>
</entry>
<entry>
<title>* src/remove.c (AD_pop_and_chdir): Return prev_dir rather than storing through</title>
<updated>2006-11-26T16:39:53Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-11-25T10:01:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1b95d5ee81d8621ff54d65ca3700c977c738610a'/>
<id>urn:sha1:1b95d5ee81d8621ff54d65ca3700c977c738610a</id>
<content type='text'>
a pointer argument.  All uses changed.

Signed-off-by: Paul Eggert &lt;eggert@cs.ucla.edu&gt;
</content>
</entry>
</feed>
