mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Consider Windows paths starting with \ absolute when used with the --script option.
This commit is contained in:
parent
48dec0f9d9
commit
29109de637
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o On Windows, paths beginning with \ are now considered absolute when
|
||||
used with the --script option.
|
||||
|
||||
o Zenmap no longer double-spaces its output (by inadvertently
|
||||
duplicating newlines) when viewing scan results that were saved to a
|
||||
file.
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ static bool filename_is_absolute(const char *file) {
|
|||
if (file[0] == '/')
|
||||
return true;
|
||||
#ifdef WIN32
|
||||
if (file[0] != '\0' && file[1] == ':')
|
||||
if ((file[0] != '\0' && file[1] == ':') || file[0] == '\\')
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue