in grabbag__file_are_same() check that st_dev is same also

This commit is contained in:
Josh Coalson
2006-10-13 04:27:06 +00:00
parent f491994a54
commit 1568b1f785
2 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ const char *grabbag__file_get_basename(const char *srcpath);
*/
FLAC__bool grabbag__file_change_stats(const char *filename, FLAC__bool read_only);
/* returns true iff stat() succeeds for both files and they have the same inode */
/* returns true iff stat() succeeds for both files and they have the same device and inode */
/*@@@ this does not work on windows so for that the function just returns !strcmp(f1,f2) */
FLAC__bool grabbag__file_are_same(const char *f1, const char *f2);
/* attempts to make writable before unlinking */