Hello.

I am looking for sponsor.

Synopsis: Could not create ".EXT" files or dirs (short 0.3 entry)
BugID:    CR 6890728
SCA:      OS0092
Fix:      attached in bug description and this mail
TestCase: attached in bug description

Martin Cerveny
-------------- next part --------------
--- usr/src/uts/common/fs/pcfs/pc_dir.c__       Mon Oct 12 20:55:45 2009
+++ usr/src/uts/common/fs/pcfs/pc_dir.c Mon Oct 12 22:11:16 2009
@@ -1044,15 +1044,24 @@
                return (EINVAL);
        if (c == '.') {
                /*
-                * check for "." and "..".
+                * check for "." and ".." or ".ext"
                 */
                *fnamep++ = c;
                n--;
                if (c = *namep++) {
-                       if ((c != '.') || (c = *namep)) /* ".x" or "..x" */
-                               return (EINVAL);
-                       *fnamep++ = '.';
-                       n--;
+                       if ((c != '.') || (*namep)) { 
+                               if ( c == '.' ) return (EINVAL); /*  "..x" */
+                               /* ".ext" */
+                               fnamep--; 
+                               n++;
+                               namep--;
+                               c = '.';
+                       } else {
+                               /* ".." */
+                               *fnamep++ = '.';
+                               n--;
+                               c = 0;
+                       }
                }
        } else {
                /*

Reply via email to