summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:22:45 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:22:45 +0000
commit9d4f2c808caa5af966c54de9a89c4a9ce1ef48a6 (patch)
treec3d91c2a0ee30b6eeefc0af1faf7355de9e672eb /sftp-int.c
parent6690494f2125a5576cde11f7642e5ba70c91579c (diff)
- djm@cvs.openbsd.org 2001/02/14 9:46:03
[sftp-client.c sftp-int.c sftp.1] Fix and document 'preserve modes & times' option ('-p' flag in sftp); ok markus@
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sftp-int.c b/sftp-int.c
index c236f6da..fd649822 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -28,7 +28,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.21 2001/02/12 20:53:33 stevesk Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.22 2001/02/14 09:46:03 djm Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -204,11 +204,12 @@ parse_getput_flags(const char **cpp, int *pflag)
/* Check for flags */
if (cp[0] == '-' && cp[1] && strchr(WHITESPACE, cp[2])) {
switch (cp[1]) {
+ case 'p':
case 'P':
*pflag = 1;
break;
default:
- error("Invalid flag -%c", *cp);
+ error("Invalid flag -%c", cp[1]);
return(-1);
}
cp += 2;