From: downsj Date: Mon, 27 Jan 1997 00:33:04 +0000 (+0000) Subject: As of 2.1.14, Linux chown() doesn't follow symlinks either. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b98888cef02c9ffc9254e9e05934fb5757d0e5c4;p=openbsd As of 2.1.14, Linux chown() doesn't follow symlinks either. --- diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 9b1ec0e6f23..776b1a6b306 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -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