commit 7309302e25a05aaa69e1d65ac9ae70e82e32c1d9
parent ac47a21b9bf6d865f1165f376fa2bcb694eb9bf4
Author: sin <sin@2f30.org>
Date: Fri, 14 Feb 2014 11:47:34 +0000
Don't check remove() return value
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ln.c b/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;
}
-