Ticket #309: parent-of-root-is-invalid.diff
File parent-of-root-is-invalid.diff, 651 bytes (added by , 10 years ago) |
---|
-
src/lib/sys/fs.c
1173 1189 /* noop */; 1174 1190 pszPrev++; 1175 1191 } 1192 else if (pszPrev[1] != '\0') /* a parent of root ? invalid! */ 1193 { 1194 rcRet = -ENOENT; 1195 break; 1196 } 1176 1197 *psz = chSlash; 1177 1198 memmove(pszPrev - 1, psz, cchNativePath - (psz - pszNativePath) + 1); 1178 1199 cchNativePath -= psz - (pszPrev - 1);