aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:49:13 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:49:13 +0000
commit8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9 (patch)
tree6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /networking/tftp.c
parentb0ba03e9b3d460154fd09ef5676c18bf0770fdce (diff)
downloadbusybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.gz
busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.bz2
busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.zip
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 64d376fa7..a62c5d8cc 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -530,7 +530,7 @@ int tftp_main(int argc, char **argv)
530 if ((localfile == NULL && remotefile == NULL) || (argv[optind] == NULL)) 530 if ((localfile == NULL && remotefile == NULL) || (argv[optind] == NULL))
531 bb_show_usage(); 531 bb_show_usage();
532 532
533 if (localfile == NULL || strcmp(localfile, "-") == 0) { 533 if (localfile == NULL || LONE_DASH(localfile)) {
534 fd = (cmd == tftp_cmd_get) ? STDOUT_FILENO : STDIN_FILENO; 534 fd = (cmd == tftp_cmd_get) ? STDOUT_FILENO : STDIN_FILENO;
535 } else { 535 } else {
536 fd = open(localfile, flags, 0644); /* fail below */ 536 fd = open(localfile, flags, 0644); /* fail below */