missed two other things
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Wed, 23 Feb 1983 09:11:10 +0000 (01:11 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Wed, 23 Feb 1983 09:11:10 +0000 (01:11 -0800)
SCCS-vsn: usr.bin/ftp/main.c 4.2
SCCS-vsn: usr.bin/ftp/ftp.c 4.3

usr/src/usr.bin/ftp/ftp.c
usr/src/usr.bin/ftp/main.c

index 85ca4de..c5cbd50 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)ftp.c      4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftp.c      4.3 (Berkeley) %G%";
 #endif
 
 #include <sys/param.h>
 #endif
 
 #include <sys/param.h>
@@ -268,7 +268,7 @@ sendrequest(cmd, local, remote)
                }
                if (c < 0)
                        perror(local);
                }
                if (c < 0)
                        perror(local);
-               if (errno)
+               else if (errno)
                        perror("netout");
                break;
 
                        perror("netout");
                break;
 
@@ -289,7 +289,7 @@ sendrequest(cmd, local, remote)
                }
                if (ferror(fin))
                        perror(local);
                }
                if (ferror(fin))
                        perror(local);
-               if (ferror(dout))
+               else if (ferror(dout))
                        perror("netout");
                break;
        }
                        perror("netout");
                break;
        }
index eaf24a9..dfa32d7 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)main.c     4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     4.2 (Berkeley) %G%";
 #endif
 
 /*
 #endif
 
 /*
@@ -73,6 +73,7 @@ main(argc, argv)
        strcpy(formname, "non-print"), form = FORM_N;
        strcpy(modename, "stream"), mode = MODE_S;
        strcpy(structname, "file"), stru = STRU_F;
        strcpy(formname, "non-print"), form = FORM_N;
        strcpy(modename, "stream"), mode = MODE_S;
        strcpy(structname, "file"), stru = STRU_F;
+       strcpy(bytename, "8"), bytesize = 8;
        if (fromatty)
                verbose++;
        if (argc > 0) {
        if (fromatty)
                verbose++;
        if (argc > 0) {