diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-06-16 16:56:40 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-06-16 16:56:40 +0000 |
commit | d4d93723f01dbe8768e7fac92ce8e655aa499f0a (patch) | |
tree | b3ebf7417099e0b7cb71690ec6be7b2107da6e10 /ext2fs/inode.c | |
parent | 3e4ff0686906db15f48a1156d0814e8842f9df3f (diff) |
Tue Jun 15 21:51:58 1999 Thomas Bushnell, BSG <tb@mit.edu>
* pager.c: Clamp the number of free pages we keep around to some
reasonably small value. Patch from Mark Kettenis
<kettenis@wins.uva.nl>.
1999-06-15 Thomas Bushnell, BSG <tb@mit.edu>
* inode.c (diskfs_validate_flags_change): Invert sense of test wrt
bits that haven't yet been defined. Reported by Kalle Olavi
Niemitalo <tosi@ees2.oulu.fi>.
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r-- | ext2fs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 0e3d01c9..909131d4 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -1,6 +1,6 @@ /* Inode management routines - Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. Converted for ext2fs by Miles Bader <miles@gnu.ai.mit.edu> @@ -373,10 +373,10 @@ diskfs_validate_author_change (struct node *np, uid_t author) error_t diskfs_validate_flags_change (struct node *np, int flags) { - if (flags & (UF_NODUMP | UF_IMMUTABLE | UF_APPEND)) - return 0; - else + if (flags & ~(UF_NODUMP | UF_IMMUTABLE | UF_APPEND)) return EINVAL; + else + return 0; } /* Writes everything from NP's inode to the disk image, and returns a pointer |