- stevesk@cvs.openbsd.org 2001/03/28 19:56:23
[scp.c] start to sync scp closer to rcp; ok markus@
This commit is contained in:
parent
df221391e6
commit
bd47226987
|
@ -20,6 +20,9 @@
|
|||
[compat.c compat.h dh.c dh.h ssh2.h sshconnect2.c sshd.c version.h]
|
||||
make dh group exchange more flexible, allow min and max group size,
|
||||
okay markus@, deraadt@
|
||||
- stevesk@cvs.openbsd.org 2001/03/28 19:56:23
|
||||
[scp.c]
|
||||
start to sync scp closer to rcp; ok markus@
|
||||
|
||||
20010328
|
||||
- (djm) Reorder tests and library inclusion for Krb4/AFS to try to
|
||||
|
@ -4758,4 +4761,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.1031 2001/03/29 00:36:16 mouring Exp $
|
||||
$Id: ChangeLog,v 1.1032 2001/03/29 00:39:55 mouring Exp $
|
||||
|
|
10
scp.c
10
scp.c
|
@ -75,7 +75,7 @@
|
|||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: scp.c,v 1.62 2001/03/21 12:33:33 markus Exp $");
|
||||
RCSID("$OpenBSD: scp.c,v 1.63 2001/03/28 19:56:23 stevesk Exp $");
|
||||
|
||||
#include "xmalloc.h"
|
||||
#include "atomicio.h"
|
||||
|
@ -202,8 +202,6 @@ typedef struct {
|
|||
char *buf;
|
||||
} BUF;
|
||||
|
||||
extern int iamremote;
|
||||
|
||||
BUF *allocbuf(BUF *, int, int);
|
||||
char *colon(char *);
|
||||
void lostconn(int);
|
||||
|
@ -220,7 +218,6 @@ int pflag, iamremote, iamrecursive, targetshouldbedirectory;
|
|||
#define CMDNEEDS 64
|
||||
char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
|
||||
|
||||
int main(int, char *[]);
|
||||
int response(void);
|
||||
void rsource(char *, struct stat *);
|
||||
void sink(int, char *[]);
|
||||
|
@ -295,7 +292,6 @@ main(argc, argv)
|
|||
iamremote = 1;
|
||||
tflag = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
usage();
|
||||
}
|
||||
|
@ -640,7 +636,7 @@ rsource(name, statp)
|
|||
closedir(dirp);
|
||||
return;
|
||||
}
|
||||
while ((dp = readdir(dirp))) {
|
||||
while ((dp = readdir(dirp)) != NULL) {
|
||||
if (dp->d_ino == 0)
|
||||
continue;
|
||||
if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
|
||||
|
@ -769,7 +765,7 @@ sink(argc, argv)
|
|||
if (*cp++ != ' ')
|
||||
SCREWUP("mode not delimited");
|
||||
|
||||
for (size = 0; *cp >= '0' && *cp <= '9';)
|
||||
for (size = 0; isdigit(*cp);)
|
||||
size = size * 10 + (*cp++ - '0');
|
||||
if (*cp++ != ' ')
|
||||
SCREWUP("size not delimited");
|
||||
|
|
Loading…
Reference in New Issue