Project

General

Profile

Bug #1894 ยป 0001-tmpfs-Correct-checking-of-VWRITE.patch

rumcic, 11/01/2010 09:07 AM

View differences:

sys/vfs/tmpfs/tmpfs_vnops.c
case VLNK:
/* FALLTHROUGH */
case VREG:
if (VWRITE && vp->v_mount->mnt_flag & MNT_RDONLY) {
if ((v->a_mode & VWRITE) && vp->v_mount->mnt_flag & MNT_RDONLY) {
error = EROFS;
goto out;
}
......
goto out;
}
if (VWRITE && node->tn_flags & IMMUTABLE) {
if ((v->a_mode & VWRITE) && node->tn_flags & IMMUTABLE) {
error = EPERM;
goto out;
}
    (1-1/1)