summaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 223d2435c..dff894468 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -132,7 +132,7 @@ int ftp_receive(ftp_host_info_t *server, FILE *control_stream,
132 do_continue = 0; 132 do_continue = 0;
133 } 133 }
134 134
135 if ((local_path[0] == '-') && (local_path[1] == '\0')) { 135 if (LONE_DASH(local_path)) {
136 fd_local = STDOUT_FILENO; 136 fd_local = STDOUT_FILENO;
137 do_continue = 0; 137 do_continue = 0;
138 } 138 }
@@ -212,9 +212,8 @@ int ftp_send(ftp_host_info_t *server, FILE *control_stream,
212 fd_data = xconnect_ftpdata(server, buf); 212 fd_data = xconnect_ftpdata(server, buf);
213 213
214 /* get the local file */ 214 /* get the local file */
215 if ((local_path[0] == '-') && (local_path[1] == '\0')) { 215 fd_local = STDIN_FILENO;
216 fd_local = STDIN_FILENO; 216 if (NOT_LONE_DASH(local_path)) {
217 } else {
218 fd_local = xopen(local_path, O_RDONLY); 217 fd_local = xopen(local_path, O_RDONLY);
219 fstat(fd_local, &sbuf); 218 fstat(fd_local, &sbuf);
220 219