From owner-cvs-all Mon Apr 6 10:41:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24187 for cvs-all-outgoing; Mon, 6 Apr 1998 10:41:06 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24182; Mon, 6 Apr 1998 10:41:05 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA02766; Mon, 6 Apr 1998 10:38:44 -0700 (PDT) Date: Mon, 6 Apr 1998 10:38:44 -0700 (PDT) Message-Id: <199804061738.KAA02766@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern vfs_vnops.c src/sys/sys fcntl.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1998/04/06 10:38:43 PDT Modified files: sys/kern vfs_vnops.c sys/sys fcntl.h Log: Implement a new open(2) flag: O_NOFOLLOW. This will instruct open to not follow symlinks, but to open a handle on the link itself(!). As strange as this might sound, it has several useful applications safe race-free ways of opening files in hostile areas (eg: /tmp, a mode 1777 /var/mail, etc). It also would allow things like fchown() to work on the link rather than having to implement a new syscall specifically for that task. Reviewed by: phk Revision Changes Path 1.51 +3 -2 src/sys/kern/vfs_vnops.c 1.7 +2 -1 src/sys/sys/fcntl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message