File reiserfsprogs-mkfs-use-o_excl.diff of Package reiserfs

From: Jeff Mahoney <jeffm@suse.com>
Subject: reiserfsprogs: mkfs should use O_EXCL

---
 reiserfscore/reiserfslib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/reiserfscore/reiserfslib.c	2008-01-24 13:39:03.000000000 -0500
+++ b/reiserfscore/reiserfslib.c	2008-01-24 13:39:04.000000000 -0500
@@ -206,7 +206,7 @@ reiserfs_filsys_t * reiserfs_create (cha
 	return 0;
     }
 
-    fs->fs_dev = open (filename, O_RDWR 
+    fs->fs_dev = open (filename, O_RDWR | O_EXCL
 #if defined(O_LARGEFILE)
 		       | O_LARGEFILE
 #endif
openSUSE Build Service is sponsored by