--- coreutils-4.5.2/src/ln.c.orig 2002-08-31 12:52:10 +0400 +++ coreutils-4.5.2/src/ln.c 2002-10-08 17:16:43 +0400 @@ -495,9 +495,9 @@ if (!target_directory) target_directory = file[n_files - 1]; - /* If there's only one file argument, then pretend `.' was given - as the second argument. */ - if (n_files == 1) + /* If target directory is not specified, and there's only one + file argument, then pretend `.' was given as the second argument. */ + if (!target_directory_specified && n_files == 1) { static char *dummy[2]; dummy[0] = file[0];