Don't check remove() return value

This commit is contained in:
sin 2014-02-14 11:47:34 +00:00
parent ac47a21b9b
commit 7309302e25

4
ln.c
View File

@ -42,10 +42,8 @@ ln(const char *s1, const char *s2)
int (*flink)(const char *, const char *) = sflag ? symlink : link;
if (fflag)
if (remove(s2) == -1)
eprintf("remove %s:", s2);
remove(s2);
if(flink(s1, s2) == 0)
return 0;
return -1;
}