<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/remove.c, branch v6.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-07-03T17:38:20Z</updated>
<entry>
<title>Plug another unusual leak.</title>
<updated>2006-07-03T17:38:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-03T17:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a9cf203e2d4a0f94cb2ade11dfbdb903fac70d91'/>
<id>urn:sha1:a9cf203e2d4a0f94cb2ade11dfbdb903fac70d91</id>
<content type='text'>
(AD_mark_helper): Free malloc'd filename if hash_insert says
that string is already in the hash table.
</content>
</entry>
<entry>
<title>The dev/inode of the topmost directory in each hierarchy were not</title>
<updated>2006-07-03T15:10:35Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-03T15:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a47c5ca291f51f1efcf3322b7e0aa0e31e6404e8'/>
<id>urn:sha1:a47c5ca291f51f1efcf3322b7e0aa0e31e6404e8</id>
<content type='text'>
being recorded.
* src/remove.c (remove_cwd_entries): Don't call cycle_check here.
(AD_push): Call it from here instead.
</content>
</entry>
<entry>
<title>Fix two small leaks.</title>
<updated>2006-07-03T13:14:01Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-03T13:14:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2741ffb8b4cdf076c5e973931c9afb474f1c5306'/>
<id>urn:sha1:2741ffb8b4cdf076c5e973931c9afb474f1c5306</id>
<content type='text'>
* src/remove.c (AD_stack_clear): New function.
(rm_1): Use it.
(AD_pop_and_chdir): Free *prev_dir just before longjmp.
</content>
</entry>
<entry>
<title>* src/system.h (CLOSEDIR): Remove.  All uses changed to closedir.</title>
<updated>2006-06-28T22:21:48Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-06-28T22:21:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0b24b840446f8a8427052816017e36f75f476810'/>
<id>urn:sha1:0b24b840446f8a8427052816017e36f75f476810</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any</title>
<updated>2006-06-26T13:29:48Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-06-26T13:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7590adf9b94f168f0dd7259d1b1c32e88f58114f'/>
<id>urn:sha1:7590adf9b94f168f0dd7259d1b1c32e88f58114f</id>
<content type='text'>
fd_to_subdirp failure, not just when errno == EACCES.
* src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
rmdir, here, even though rmdir may happen to be adequate.
</content>
</entry>
<entry>
<title>* NEWS: rm no longer fails to remove an empty, unreadable directory</title>
<updated>2006-06-26T13:02:01Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-06-26T13:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=78b166d1b163df894d567b79d3bb5744156fb0fe'/>
<id>urn:sha1:78b166d1b163df894d567b79d3bb5744156fb0fe</id>
<content type='text'>
* src/remove.c (remove_cwd_entries): If we can't open a directory,
and the failure is not being ignored, try to remove the directory
with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
Problem report and test case from Paul Eggert in
&lt;http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425&gt;.
* tests/rm/empty-inacc: New test, for the above.
</content>
</entry>
<entry>
<title>tweak grammar in comment</title>
<updated>2006-06-25T19:27:19Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-06-25T19:27:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=59bafa5a0cbb8baed511b48fea996e0c260aebed'/>
<id>urn:sha1:59bafa5a0cbb8baed511b48fea996e0c260aebed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(rm_1): Use new last_component, in place of base_name.</title>
<updated>2006-03-26T12:07:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-03-26T12:07:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0cabfe4b6dcc6d01d6133be1b03990aced32e2ad'/>
<id>urn:sha1:0cabfe4b6dcc6d01d6133be1b03990aced32e2ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(AD_pop_and_chdir): Use new macro,</title>
<updated>2006-03-12T22:21:05Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-03-12T22:21:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d0c89246d001217064ee93c9f764e9d27e424db5'/>
<id>urn:sha1:d0c89246d001217064ee93c9f764e9d27e424db5</id>
<content type='text'>
CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
</content>
</entry>
<entry>
<title>Fix a bug whereby a user with write access to a directory being removed</title>
<updated>2006-03-10T21:47:34Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-03-10T21:47:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=76d20d82dd1ee35c7d2ad49fb8250ac4eecde43b'/>
<id>urn:sha1:76d20d82dd1ee35c7d2ad49fb8250ac4eecde43b</id>
<content type='text'>
could cause the removal of that directory to fail with an erroneous
diagnostic about a directory cycle.  Reported by Vineet Chadha.

(AD_pop_and_chdir): If the directory we're about to
leave (and try to rmdir) is the one whose dev_ino is being used to
detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
</content>
</entry>
</feed>
