1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Make the message printed when using an absolute path look like the other NSE

debugging messages.
This commit is contained in:
david
2007-12-09 04:52:42 +00:00
parent bc24f8d6c4
commit b0d224e0da

View File

@@ -540,7 +540,7 @@ static bool filename_is_absolute(const char *file) {
int init_fetchfile_absolute(char *path, size_t path_len, char *file) {
if (filename_is_absolute(file)) {
if (o.debugging > 1)
log_write(LOG_STDOUT, "Trying absolute path %s.\n", file);
log_write(LOG_STDOUT, "%s: Trying absolute path %s\n", SCRIPT_ENGINE, file);
Strncpy(path, file, path_len);
return nmap_fileexistsandisreadable(file);
}