diff options
-rw-r--r-- | coreutils/ln.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c index 0640c6666..7c282b001 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c @@ -73,8 +73,7 @@ extern int ln_main(int argc, char **argv) free(src_name); src_name = src; } - - if (stat(*argv, &statbuf)) { + if (!(flag & LN_SYMLINK) && stat(*argv, &statbuf)) { bb_perror_msg(*argv); status = EXIT_FAILURE; free(src_name); @@ -101,13 +100,3 @@ extern int ln_main(int argc, char **argv) return status; } - - - - - - - - - - |