mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(do_link): Remove duplicate `if (lstat' block.
This commit is contained in:
1 parent
359f885aae
commit
f59d1dac46
1 file changed
-6
@@ -151,12 +151,6 @@ do_link (char *source, char *dest)
|
||||
}
|
||||
}
|
||||
|
||||
if (lstat (dest, &dest_stats) != 0 && errno != ENOENT)
|
||||
{
|
||||
error (0, errno, "%s", dest);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* If the destination is a directory or (it is a symlink to a directory
|
||||
and the user has not specified --no-dereference), then form the
|
||||
actual destination name by appending basename (source) to the
|
||||
|
||||
Reference in new issue
Block a user