diff options
Diffstat (limited to 'sftp-int.c')
-rw-r--r-- | sftp-int.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sftp-int.c b/sftp-int.c index 8e45f869b..aa69d802d 100644 --- a/sftp-int.c +++ b/sftp-int.c | |||
@@ -26,7 +26,7 @@ | |||
26 | /* XXX: recursive operations */ | 26 | /* XXX: recursive operations */ |
27 | 27 | ||
28 | #include "includes.h" | 28 | #include "includes.h" |
29 | RCSID("$OpenBSD: sftp-int.c,v 1.31 2001/03/16 13:44:24 markus Exp $"); | 29 | RCSID("$OpenBSD: sftp-int.c,v 1.32 2001/03/23 13:10:57 markus Exp $"); |
30 | 30 | ||
31 | #include "buffer.h" | 31 | #include "buffer.h" |
32 | #include "xmalloc.h" | 32 | #include "xmalloc.h" |
@@ -451,9 +451,12 @@ process_put(int in, int out, char *src, char *dst, char *pwd, int pflag) | |||
451 | xfree(tmp); | 451 | xfree(tmp); |
452 | } else | 452 | } else |
453 | abs_dst = xstrdup(tmp_dst); | 453 | abs_dst = xstrdup(tmp_dst); |
454 | } else if (infer_path(g.gl_pathv[0], &abs_dst)) { | 454 | } else { |
455 | err = -1; | 455 | if (infer_path(g.gl_pathv[0], &abs_dst)) { |
456 | goto out; | 456 | err = -1; |
457 | goto out; | ||
458 | } | ||
459 | abs_dst = make_absolute(abs_dst, pwd); | ||
457 | } | 460 | } |
458 | printf("Uploading %s to %s\n", g.gl_pathv[0], abs_dst); | 461 | printf("Uploading %s to %s\n", g.gl_pathv[0], abs_dst); |
459 | err = do_upload(in, out, g.gl_pathv[0], abs_dst, pflag); | 462 | err = do_upload(in, out, g.gl_pathv[0], abs_dst, pflag); |