CVS commit by ossi:
avoid crash in case of a rather weird (==misconfigured?) sync state
location.
M +5 -4 sync.c 1.43.2.3
--- isync/src/sync.c #1.43.2.2:1.43.2.3
@@ -712,8 +712,9 @@ sync_boxes( store_t *mctx, const char *m
}
- s = strrchr( dname, '/' );
+ if ((s = strrchr( dname, '/' ))) {
*s = 0;
mkdir( dname, 0700 );
*s = '/';
+ }
if (lfd < 0) {
if ((lfd = open( lname, O_WRONLY|O_CREAT, 0666 )) < 0)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel