(sendrequest, recvrequest): do correct tests for `-'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3809 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-06 21:44:18 +00:00
parent e2f6dce4b0
commit b7d37b777d

View File

@@ -616,7 +616,7 @@ sendrequest(char *cmd, char *local, char *remote, int printnames)
char *lmode;
if (verbose && printnames) {
if (local && *local != '-')
if (local && strcmp(local, "-") != 0)
printf("local: %s ", local);
if (remote)
printf("remote: %s\n", remote);
@@ -847,7 +847,7 @@ recvrequest(char *cmd, char *local, char *remote,
is_retr = strcmp(cmd, "RETR") == 0;
if (is_retr && verbose && printnames) {
if (local && *local != '-')
if (local && strcmp(local, "-") != 0)
printf("local: %s ", local);
if (remote)
printf("remote: %s\n", remote);