commit 61aaa9f7d506e73a779d7c05aad4fbdc8e27ab75
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 
0b9cad508b1f8a746c23a818fa394eb57dc25a75..fbb5ab59c3498fdad1254e2cc071f880b3eaf35f
 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -337,8 +337,12 @@ static int parse_dirs_option(struct supe
                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