commit: e427894953ef9a03834ce9e77abe8844883dba6c
parent 76f1037a73f14602e078d6102f3886148980b9ff
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 4 Aug 2025 07:27:38 +0200
cmd/ln: toss out strcmp
Paths don't work that way when there's a file descriptor.
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/cmd/ln.c b/cmd/ln.c
@@ -60,12 +60,6 @@ do_link(char *src, char *dest, int destfd)
}
}
- if(strcmp(src, dest) == 0)
- {
- fprintf(stderr, "ln: error: Path '%s' passed to both source and destination\n", src);
- return 1;
- }
-
errno = 0;
if(!force)