summaryrefslogtreecommitdiff
path: root/ftp/fmirror/files/patch-fmirror.c
blob: 6c1f00e3c984675bd49575bcd521318037504a45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- fmirror.c.orig	Tue Jun  7 10:39:35 2005
+++ fmirror.c	Tue Jun  7 10:39:44 2005
@@ -642,7 +642,7 @@
     va_list args;
     va_start(args, format);
     vsprintf(buffer, format, args);
-    l = fprintf(out_file, "%s\n", buffer); 
+    l = fprintf(out_file, "%s\r\n", buffer); 
     fflush(out_file);
     buffer[l - 1] = 0;
     LOG(6, cmd, ("---> %s", buffer));
@@ -934,7 +934,7 @@
 
     if (gotodir) {
 	cmd("CWD %s", gotodir);
-	if (!success()) {
+	if (!success() && strcmp(gotodir, "/") != 0) {
 		LOG(4, findtz, ("Cannot CWD %s for timezone", gotodir));
 		gotodir = 0;
 		goto dirdone;