From: Al Viro <viro@ftp.linux.org.uk>
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, torvalds@osdl.org
Subject: Re: [PATCH] Implement AT_SYMLINK_FOLLOW flag for linkat
Date: Sun, 18 Jun 2006 20:16:29 +0100 [thread overview]
Message-ID: <20060618191629.GE27946@ftp.linux.org.uk> (raw)
In-Reply-To: <200606171913.k5HJDM3U021408@devserv.devel.redhat.com>
On Sat, Jun 17, 2006 at 03:13:22PM -0400, Ulrich Drepper wrote:
> When the linkat() syscall was added the flag parameter was added in the
> last minute but it wasn't used so far. The following patch should
> change that. My tests show that this is all that's needed.
>
> If OLDNAME is a symlink setting the flag causes linkat to follow the
> symlink and create a hardlink with the target. This is actually
> the behavior POSIX demands for link() as well but Linux wisely does
> not do this. With this flag (which will most likely be in the next
> POSIX revision) the programmer can choose the behavior, defaulting
> to the safe variant. As a side effect it is now possible to implement
> a POSIX-compliant link(2) function for those who are interested.
Where does POSIX require that? IIRC, it was along the lines of "application
can't rely on kernel doing the right thing", not "kernel must do the
wrong thing"...
next prev parent reply other threads:[~2006-06-18 19:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-17 19:13 [PATCH] Implement AT_SYMLINK_FOLLOW flag for linkat Ulrich Drepper
2006-06-18 19:16 ` Al Viro [this message]
2006-06-18 19:22 ` Linus Torvalds
2006-06-18 19:32 ` Al Viro
2006-06-18 19:40 ` Ulrich Drepper
2006-06-18 22:06 ` Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060618191629.GE27946@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=akpm@osdl.org \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox