ossp-pkg/path/path_rel2abs.c 1.2 -> 1.3
--- path_rel2abs.c 2002/08/03 10:23:41 1.2
+++ path_rel2abs.c 2003/02/16 11:38:12 1.3
@@ -90,11 +90,11 @@
goto erange;
strcpy(result, path);
goto finish;
- }
+ }
else if (*base != '/' || !size) {
errno = EINVAL;
return (NULL);
- }
+ }
else if (size == 1) {
goto erange;
}
@@ -133,15 +133,15 @@
pp += 3;
while (bp > base && *--bp != '/')
;
- }
+ }
else if (!strncmp(pp, "./", 2)) {
pp += 2;
- }
+ }
else if (!strncmp(pp, "..\0", 3)) {
pp += 2;
while (bp > base && *--bp != '/')
;
- }
+ }
else
break;
}
|
|