[PATCH] fs/namei.c fix

From: SL Baur (steve@kbuxd.necst.nec.co.jp)
Date: Wed Nov 27 2002 - 22:15:33 EST


One of Greg KH's security cleanups reversed the sense of a test.
Without this patch, 2.5.50 oopses at boot. Please apply.

===== fs/namei.c 1.59 vs edited =====
--- 1.59/fs/namei.c Thu Nov 28 08:11:14 2002
+++ edited/fs/namei.c Thu Nov 28 12:09:53 2002
@@ -1648,7 +1648,7 @@
                 error = -EBUSY;
         else {
                 error = security_inode_unlink(dir, dentry);
- if (error)
+ if (!error)
                         error = dir->i_op->unlink(dir, dentry);
         }
         up(&dentry->d_inode->i_sem);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:19 EST