commit a8fcc5e21175be7156de634b7de89a4b1d421215
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Fri May 25 17:01:00 2007 -0400

    bug fix: catch bad use of dirs= options (extra ':' separators)
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index 0b9cad5..fbb5ab5 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -337,8 +337,12 @@ static int parse_dirs_option(struct super_block *sb, 
struct unionfs_dentry_info
                int perms;
                char *mode = strchr(name, '=');
 
-               if (!name || !*name)
+               if (!name)
                        continue;
+               if (!*name) {   /* bad use of ':' (extra colons) */
+                       err = -EINVAL;
+                       goto out;
+               }
 
                branches++;
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to