Subject: Re: kern/576: can't remove symlink created on the directory with sticky bit
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Masaru Oki <oki@fs.telcom.oki.co.jp>
List: netbsd-bugs
Date: 11/16/1994 13:06:03
>> Fix:
maybe, yet another fix:
--- src/sys/ufs/ufs/ufs_lookup.c.orig Wed Jun 29 19:33:46 1994
+++ src/sys/ufs/ufs/ufs_lookup.c Wed Nov 16 13:01:22 1994
@@ -483,6 +483,7 @@
* implements append-only directories.
*/
if ((dp->i_mode & ISVTX) &&
+ (dp->i_mode & IFLNK) == 0 &&
cred->cr_uid != 0 &&
cred->cr_uid != dp->i_uid &&
VTOI(tdp)->i_uid != cred->cr_uid) {
I don't know that which is better...
Masaru Oki