diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-17 18:12:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-17 18:12:19 +0000 |
commit | ea020acdd29efdaf7bf6c465e7339e1a6e712292 (patch) | |
tree | e9188ffa56b4db59db8766c73bc40bd8ca4e8cb9 | |
parent | 3b713062cd862c9ddb4dc6ef2c1343319a0b31f0 (diff) | |
download | coreutils-ea020acdd29efdaf7bf6c465e7339e1a6e712292.tar.xz |
(same_name): Use SAME_INODE rather than open coding it.
-rw-r--r-- | src/ln.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -149,8 +149,7 @@ same_name (const char *source, const char *dest) free (source_dirname); free (dest_dirname); - return (source_dir_stats.st_dev == dest_dir_stats.st_dev - && source_dir_stats.st_ino == dest_dir_stats.st_ino + return (SAME_INODE (source_dir_stats, dest_dir_stats) && STREQ (base_name (source), base_name (dest))); } |