diff options
author | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-05-07 10:47:30 +0800 |
---|---|---|
committer | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-05-07 10:47:30 +0800 |
commit | 30c10f367fd74c848fdda9a5d4cf2bddbfe75581 (patch) | |
tree | 21fc872abc9b7a50d82db800e809826f47e0302e /innbbsd | |
parent | 0064595f033d6ee4bbcf9a198c7727fbeac11de8 (diff) | |
download | pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar.gz pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar.bz2 pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar.lz pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar.xz pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.tar.zst pttbbs-30c10f367fd74c848fdda9a5d4cf2bddbfe75581.zip |
Fix reversed equality test bug in r4431.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4450 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/bbslink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index f9d8cc61..55dac2e6 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -1432,17 +1432,17 @@ send_article() sprintf(sendfile, "%s.sending", site); sprintf(feedfile, "%s.feed", site); sprintf(feedingfile, "%s.feeding", site); - if (dashf(sendfile) && dashs(sendfile) == 0) { + if (dashf(sendfile) && dashs(sendfile) != 0) { if (bbslink_get_lock(sendfile)) { send_nntplink(node, site, nntphost, protocol, port, sendfile, nlcount); bbslink_un_lock(sendfile); } } - if (dashf(linkfile) && dashs(linkfile) == 0) { + if (dashf(linkfile) && dashs(linkfile) != 0) { if (!NoAction) { if (bbslink_get_lock(sendfile) && bbslink_get_lock(linkfile) && bbslink_get_lock(feedingfile)) { - if (dashf(sendfile) && dashs(sendfile) == 0) { + if (dashf(sendfile) && dashs(sendfile) != 0) { save_nntplink(node, sendfile); } if (node->feedfp) { @@ -1459,16 +1459,16 @@ send_article() send_nntplink(node, site, nntphost, protocol, port, linkfile, nlcount); } } - if (dashf(feedingfile) && dashs(feedingfile) == 0) { + if (dashf(feedingfile) && dashs(feedingfile) != 0) { if (bbslink_get_lock(feedingfile)) { send_nntplink(node, site, nntphost, protocol, port, feedingfile, nlcount); bbslink_un_lock(feedingfile); } } - if (dashf(feedfile) && dashs(feedfile) == 0) { + if (dashf(feedfile) && dashs(feedfile) != 0) { if (!NoAction) { if (bbslink_get_lock(feedfile) && bbslink_get_lock(feedingfile)) { - if (dashf(feedingfile) && dashs(feedingfile) == 0) { + if (dashf(feedingfile) && dashs(feedingfile) != 0) { save_nntplink(node, feedingfile); if (node->feedfp) { fclose(node->feedfp); |