mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 10:19:03 +00:00
Changed two OS scan error() calls to LOG_STDOUT instead. They aren't
errors and having them go to STDERR could be confusing.
This commit is contained in:
@@ -1915,7 +1915,7 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
|
|||||||
if (hss->si.lastboot && (hss->seq_send_times[0].tv_sec - hss->si.lastboot > 63072000)) {
|
if (hss->si.lastboot && (hss->seq_send_times[0].tv_sec - hss->si.lastboot > 63072000)) {
|
||||||
/* Up 2 years? Perhaps, but they're probably lying. */
|
/* Up 2 years? Perhaps, but they're probably lying. */
|
||||||
if (o.debugging) {
|
if (o.debugging) {
|
||||||
error("Ignoring claimed %s uptime of %lu days",
|
log_write(LOG_STDOUT, "Ignoring claimed %s uptime of %lu days",
|
||||||
hss->target->targetipstr(),
|
hss->target->targetipstr(),
|
||||||
(hss->seq_send_times[0].tv_sec - hss->si.lastboot) / 86400);
|
(hss->seq_send_times[0].tv_sec - hss->si.lastboot) / 86400);
|
||||||
}
|
}
|
||||||
@@ -3642,7 +3642,7 @@ static void endRound(OsScanInfo *OSI, HostOsScan *HOS, int roundNum) {
|
|||||||
hsi->FP_matches[roundNum].num_perfect_matches > 0) {
|
hsi->FP_matches[roundNum].num_perfect_matches > 0) {
|
||||||
memcpy(&(hsi->target->seq), &hsi->hss->si, sizeof(struct seq_info));
|
memcpy(&(hsi->target->seq), &hsi->hss->si, sizeof(struct seq_info));
|
||||||
if (roundNum > 0) {
|
if (roundNum > 0) {
|
||||||
if(o.verbose) error("WARNING: OS didn't match until try #%d", roundNum + 1);
|
if(o.verbose) log_write(LOG_STDOUT, "WARNING: OS didn't match until try #%d", roundNum + 1);
|
||||||
}
|
}
|
||||||
match_fingerprint(hsi->target->FPR->FPs[roundNum], hsi->target->FPR,
|
match_fingerprint(hsi->target->FPR->FPs[roundNum], hsi->target->FPR,
|
||||||
o.reference_FPs, OSSCAN_GUESS_THRESHOLD);
|
o.reference_FPs, OSSCAN_GUESS_THRESHOLD);
|
||||||
|
|||||||
Reference in New Issue
Block a user