Don't check remove() return value
This commit is contained in:
parent
ac47a21b9b
commit
7309302e25
4
ln.c
4
ln.c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user