summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ln.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ln.c b/ln.c
index 3ff367b..4f30824 100644
--- a/ln.c
+++ b/ln.c
@@ -112,6 +112,8 @@ int main(int argc, char *argv[])
if (argc - optind == 2) {
if (dirfd == -1) {
dirfd = AT_FDCWD;
+ } else {
+ target = NULL;
}
return ln(argv[optind], dirfd, target, symbolic, force, flag);
}