Mercurial > hg > toybox
view .hgignore @ 1471:b748127e092e draft
Bug report from luckboy: rm -f on a broken symlink didn't work because our "does it exist" test (to avoid errors on rm -f of nonexistent files) said it didn't.
The fix: replace the access() with unlink(), which produces the same "does not
exist" errno and has the added bonus of acting as a fastpath for rm -f on
non-directories. (And since it produces a different error on directories,
falls through to the old behavior there.)
Most of this commit is comment updates explaining being subtle. :)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 13 Sep 2014 14:48:37 -0500 |
parents | ea1bd7561a52 |
children | e618a873a946 |
line wrap: on
line source
syntax: glob .config* generated/ kconfig/mconf kconfig/conf toybox toybox_unstripped