383 |
printf("putting %s to %s:%s [%s]\n", |
printf("putting %s to %s:%s [%s]\n", |
384 |
cp, hostname, targ, mode); |
cp, hostname, targ, mode); |
385 |
peeraddr.sin_port = port; |
peeraddr.sin_port = port; |
386 |
sendfile(fd, targ, mode); |
send_file(fd, targ, mode); |
387 |
return; |
return; |
388 |
} |
} |
389 |
/* this assumes the target is a directory */ |
/* this assumes the target is a directory */ |
401 |
printf("putting %s to %s:%s [%s]\n", |
printf("putting %s to %s:%s [%s]\n", |
402 |
argv[n], hostname, targ, mode); |
argv[n], hostname, targ, mode); |
403 |
peeraddr.sin_port = port; |
peeraddr.sin_port = port; |
404 |
sendfile(fd, targ, mode); |
send_file(fd, targ, mode); |
405 |
} |
} |
406 |
} |
} |
407 |
|
|