From 95f75a3dcdbdf78fbb30d2a2e3e7777ee8ba1129 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Thu, 8 Jan 2004 10:51:09 +0000 Subject: [PATCH] Patch from Bastian Blank to fix debian bug #226722, test case: mkdir foo touch foo/bar ln -s bar foo/baz --- coreutils/ln.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/coreutils/ln.c b/coreutils/ln.c index 0640c66..7c282b0 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; } - - - - - - - - - - -- 2.7.4