mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
okay, a change to r6530: the current %R and %T are being removed as colons are invalid chracters in Windows and Mac OS X filenames (thanks to jah for pointing out the problem on Windows). What was %r and %t are now the new %R and %T. All this means is that %r and %t are gone, and %R/%T are the same as with strftime() but without colons
This commit is contained in:
parent
2425765f4e
commit
9ae985ef59
3 changed files with 14 additions and 19 deletions
11
CHANGELOG
11
CHANGELOG
|
|
@ -1,11 +1,12 @@
|
|||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o Nmap's output options (-oA, -oX, etc.) now support strftime()-like
|
||||
conversions in the filename. %H, %M, %S, %T, %R, %m, %d, %y, and
|
||||
%Y are all the same as in strftime(). %t is the same as %H%M%S,
|
||||
%r is the same as %H%M, and %D is the same as %m%d%y. This means
|
||||
that "-oX 'scan-%T-%D.xml'" uses an XML file in the form of
|
||||
"scan-14:48:40-121307.xml". [Kris]
|
||||
conversions in the filename. %H, %M, %S, %m, %d, %y, and %Y are
|
||||
all the same as in strftime(). %T is the same as %H%M%S, %R is the
|
||||
same as %H%M, and %D is the same as %m%d%y. A % followed by any
|
||||
other character just yields that character (%% yields a %). This
|
||||
means that "-oX 'scan-%T-%D.xml'" uses an XML file in the form of
|
||||
"scan-144840-121307.xml". [Kris]
|
||||
|
||||
4.50
|
||||
|
||||
|
|
|
|||
|
|
@ -2870,15 +2870,15 @@ respectively.</para>
|
|||
|
||||
<para>All of these arguments support <function>strftime()</function>-like
|
||||
conversions in the filename. <literal>%H</literal>, <literal>%M</literal>,
|
||||
<literal>%S</literal>, <literal>%T</literal>, <literal>%R</literal>,
|
||||
<literal>%m</literal>, <literal>%d</literal>, <literal>%y</literal>,
|
||||
and <literal>%Y</literal> are all exactly the same as in
|
||||
<function>strftime()</function>. <literal>%t</literal> is the same as
|
||||
<literal>%H%M%S</literal>, <literal>%r</literal> is the same as
|
||||
<literal>%S</literal>, <literal>%m</literal>, <literal>%d</literal>,
|
||||
<literal>%y</literal>, and <literal>%Y</literal> are all exactly the same
|
||||
as in <function>strftime()</function>. <literal>%T</literal> is the same
|
||||
as <literal>%H%M%S</literal>, <literal>%R</literal> is the same as
|
||||
<literal>%H%M</literal>, and <literal>%D</literal> is the same as
|
||||
<literal>%m%d%y</literal>. So <option>-oX 'scan-%T-%D.xml'</option>
|
||||
will use an XML file in the form of
|
||||
<filename>scan-14:48:40-121307.xml</filename>.</para>
|
||||
<literal>%m%d%y</literal>. A <literal>%</literal> followed by any other
|
||||
character just yields that character (<literal>%%</literal> gives you a
|
||||
percent symbol). So <option>-oX 'scan-%T-%D.xml'</option> will use an XML
|
||||
file in the form of <filename>scan-144840-121307.xml</filename>.</para>
|
||||
|
||||
<para>Nmap also offers options to control scan verbosity and to append
|
||||
to output files rather than clobbering them. All of these options are
|
||||
|
|
|
|||
|
|
@ -857,15 +857,9 @@ char *logfilename(const char *str, struct tm *tm)
|
|||
strftime(tbuf, sizeof tbuf, "%S", tm);
|
||||
break;
|
||||
case 'T':
|
||||
strftime(tbuf, sizeof tbuf, "%T", tm);
|
||||
break;
|
||||
case 't':
|
||||
strftime(tbuf, sizeof tbuf, "%H%M%S", tm);
|
||||
break;
|
||||
case 'R':
|
||||
strftime(tbuf, sizeof tbuf, "%R", tm);
|
||||
break;
|
||||
case 'r':
|
||||
strftime(tbuf, sizeof tbuf, "%H%M", tm);
|
||||
break;
|
||||
case 'm':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue