DragonFly kernel List (threaded) for 2008-06
DragonFly BSD
DragonFly kernel List (threaded) for 2008-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: link(2) behaviour when creating a hardlink to a symlink


From: ejc <eric.j.christeson@xxxxxxxxx>
Date: Wed, 11 Jun 2008 15:48:34 -0500

On Wed, Jun 11, 2008 at 3:27 PM, Jordan Gordeev <jgordeev@dir.bg> wrote:
> Cvs2svn, a package available in pkgsrc, doesn't extract successfully on
> DragonFly.
> During extraction, a link() syscall is made to create a hardlink to a
> symlink that points to a non-existent file. The link() call fails with
> ENOENT.
> I'd like to know if you think that behaviour to be a bug.

I looked up symbolic links in apue2 and link() is listed as a function
that follows symbolic links.  "If the function follows a symbolic
link, a pathname argument to the function refers to the file pionted
to by the symbolic link."
Looks like this behavior is correct.

eric



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]