Changeset 3215
- Timestamp:
- Apr 25, 2007, 3:27:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/essentials/dev-lang/perl/os2/os2.c ¶
r3210 r3215 3472 3472 } 3473 3473 if (dir == NULL) { 3474 #ifdef __KLIBC__ 3475 assert(MAXPATHLEN >= PATH_MAX); 3476 if (realpath(path, p) != 0) { 3477 RETVAL = p; 3478 } else 3479 #endif 3474 3480 if (_abspath(p, path, MAXPATHLEN) == 0) { 3475 3481 RETVAL = p; … … 3556 3562 /* Remove trailing slashes */ 3557 3563 l = strlen(RETVAL); 3558 while (l > 0 && RETVAL[l-1] == '/' )3564 while (l > 0 && RETVAL[l-1] == '/' && (l > 3 || RETVAL[1] != ':')) 3559 3565 l--; 3560 3566 ST(0) = sv_newmortal();
Note:
See TracChangeset
for help on using the changeset viewer.