From 447ace73e1b6c04d07aaf49b4f1e1216c656167c Mon Sep 17 00:00:00 2001 From: david Date: Mon, 29 Sep 2008 16:10:35 +0000 Subject: [PATCH] It appears URLs to Windows files should look like file:///C:/..., not file://C:/... (three slashes after file:). --- NmapOps.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NmapOps.cc b/NmapOps.cc index 4fca8af30..18a387727 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -184,6 +184,8 @@ char *filename_to_url(const char *filename) { if (*p == '\\') *p = '/'; } + /* Put a pseudo-root directory before "C:/" or whatever. */ + url = "/" + url; #endif url = "file://" + url;