From d4d93723f01dbe8768e7fac92ce8e655aa499f0a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 16 Jun 1999 16:56:40 +0000 Subject: Tue Jun 15 21:51:58 1999 Thomas Bushnell, BSG * pager.c: Clamp the number of free pages we keep around to some reasonably small value. Patch from Mark Kettenis . 1999-06-15 Thomas Bushnell, BSG * inode.c (diskfs_validate_flags_change): Invert sense of test wrt bits that haven't yet been defined. Reported by Kalle Olavi Niemitalo . --- ext2fs/inode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext2fs/inode.c') 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 @@ -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 -- cgit v1.2.3