DescriptionFix a bug in file_util::Delete() where symlinks are not handled right
With this patch, file_util::Delete() uses lstat64() instead of stat64(), so that Delete() checks the existence of the symbolic link itself not a file pointed by the symlink. This allows us to delete a symbolic link when it points to a non-existent file.
BUG=119430
TEST=base_unittests::FileUtilTest.* passes.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145060
Patch Set 1 #Patch Set 2 : . #
Total comments: 11
Patch Set 3 : Review fix #Patch Set 4 : Sync & add comment #
Messages
Total messages: 8 (0 generated)
|