Update of /cvsroot/mahogany/M/extra/src/c-client
In directory sc8-pr-cvs1:/tmp/cvs-serv14998/extra/src/c-client
Modified Files:
dummynt.c
Log Message:
replace all forward slashes with backslashes before creating the directory (fixes bug
797)
Index: dummynt.c
===================================================================
RCS file: /cvsroot/mahogany/M/extra/src/c-client/dummynt.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- dummynt.c 20 Feb 2003 01:49:37 -0000 1.4
+++ dummynt.c 2 Oct 2003 00:12:54 -0000 1.5
@@ -352,8 +352,14 @@
char c,*s,tmp[MAILTMPLEN];
int fd;
+ char *t;
+ int wantdir;
long ret = NIL;
- char *t = strrchr (path,'\\');
char *pt = (path[1] == ':') ? path + 2 : path;
- int wantdir = t && !t[1];
+
+ for ( t = path; *t; t++ ) {
+ if ( *t == '/' ) *t = '\\';
+ }
+ t = strrchr (path,'\\');
+ wantdir = t && !t[1];
if (wantdir) *t = '\0'; /* flush trailing delimiter for directory */
/* found superior to this name? */
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates