[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: and another diff... trailing slashes
More about the trailing slash problem...
The function tfullpath in tosfs.c should be changed to match the file
name parsing of GEMDOS and not strip trailing slashes, so that
Fopen("nondir\\",0) really fails with EPTHNF.
--- tosfs.c~ Tue Aug 30 17:56:00 1994
+++ tosfs.c Fri Feb 24 11:07:38 1995
@@ -475,6 +475,7 @@
while(*path) {
/* get next name in path */
+ while (DIRSEP(*path)) path++;
n = name; namelen = 0;
while (*path && !DIRSEP(*path)) {
/* BUG: we really should to the translation to DOS 8.3
@@ -488,7 +489,6 @@
path++;
}
*n = 0;
- while (DIRSEP(*path)) path++;
/* check for "." and ".." */
if (!strcmp(name, ".")) continue;
if (!strcmp(name, "..")) {