Re: 2.0.33: "ln -sf" reacts strange on directories

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
15 Apr 1998 11:05:15 +0200


Ulrich Windl <ulrich.windl@rz.uni-regensburg.de> writes:

|> Hello everybody,
|> I have found one odd thing about 2.0.33:

|> If I do "ln -sf" for an existing symbolic link, it depends where the
|> link points to.

|> For a file it works as expected (by me).
|> For a directory, the modification time of the link's target (the
|> directory) changes. This is what I do not expect.

|> Sorry, if it's not a kernel problem, but for me it seems to be one.

No, it isn't. Use "ln -sfd" (-d -> no dereference). If the target is a
directory then ln creates the link there.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu