As of 2.1.14, Linux chown() doesn't follow symlinks either.
authordownsj <downsj@openbsd.org>
Mon, 27 Jan 1997 00:33:04 +0000 (00:33 +0000)
committerdownsj <downsj@openbsd.org>
Mon, 27 Jan 1997 00:33:04 +0000 (00:33 +0000)
sys/compat/linux/linux_file.c

index 9b1ec0e..776b1a6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: linux_file.c,v 1.4 1996/10/16 12:25:08 deraadt Exp $  */
+/*     $OpenBSD: linux_file.c,v 1.5 1997/01/27 00:33:04 downsj Exp $   */
 /*     $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $     */
 
 /*
@@ -678,7 +678,7 @@ linux_sys_chown(p, v, retval)
        SCARG(&bca, gid) = ((linux_gid_t)SCARG(uap, gid) == (linux_gid_t)-1) ?
                (gid_t)-1 : SCARG(uap, gid);
        
-       return sys_chown(p, &bca, retval);
+       return sys_lchown(p, &bca, retval);
 }
 
 int