summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-01-27 00:33:05 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-01-27 00:33:05 +0000
commit05913aabccf9f5c73bb00315ce3cb6659eaa60e2 (patch)
tree5f3a6b7ea7835c32519baddd25dffc5dc8c60a24
parent60894de2c31a5999013a51156b2ccc93aeb63d48 (diff)
As of 2.1.14, Linux chown() doesn't follow symlinks either.
-rw-r--r--sys/compat/linux/linux_file.c4
1 files changed, 2 insertions, 2 deletions
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