Date: Tue, 26 Jun 2007 13:38:55 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122341 for review Message-ID: <200706261338.l5QDctlh051557@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122341 Change 122341 by rdivacky@rdivacky_witten on 2007/06/26 13:37:54 POSIX is really good at confusing people. Change AT_SYMLINK_NOFOLLOW to ...FOLLOW. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#5 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#31 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#5 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#31 (text+ko) ==== @@ -1505,13 +1505,13 @@ int linkat(struct thread *td, struct linkat_args *args) { - if (args->flag & ~AT_SYMLINK_NOFOLLOW) + if (args->flag & ~AT_SYMLINK_FOLLOW) return (EINVAL); - if (args->flag & AT_SYMLINK_NOFOLLOW) + if (args->flag & AT_SYMLINK_FOLLOW) + return kern_linkat(td, args->path1, args->path2, UIO_USERSPACE, args->fd1, args->fd2, FOLLOW); + else return kern_linkat(td, args->path1, args->path2, UIO_USERSPACE, args->fd1, args->fd2, 0); - else - return kern_linkat(td, args->path1, args->path2, UIO_USERSPACE, args->fd1, args->fd2, FOLLOW); } static int hardlink_check_uid = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706261338.l5QDctlh051557>