This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

man - "unsafe not found"

May I suggest a script named 'unsafe', like this one, in $PATH.
-- 8< -- unsafe --

echo -e "\
unsafe: man has detected an 'unsafe' command string.\n\
        command strings get created with my_xsprintf ()\n\
        when the %S directive is encountered."
-- 8< -- eof --

 Ideas on how to change the text output needed;
I'm not satisfied with the wording.

Reference below.
IMO man needs some work so that it doesn't core/crash on this condition.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --

cygwin on FAT32 partition, all the latest binary packages.
cygwin1.dll - 1.5.6s

$ cygcheck -c man
Cygwin Package Information
Package              Version        Status
man                  1.5j-2         OK

$ ls -lan /bin/man.exe
-rwxr-xr-x    1 500         43008 Mar 10  2003 /bin/man.exe*

$ md5sum -b /bin/man.exe
8a87e79e175caaf17627a2a3129cc7f9 */bin/man.exe

$ man --version
man, version 1.5j

$ man -WK 'garbage'
grep: /usr/man/man8c/ipopd.8c: No such file or directory
unsafe: not found
Segmentation fault (core dumped)


$ man -WK 'doesnt matter'
unsafe: not found
Segmentation fault (core dumped)

$ cat man.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=610A8CE5
eax=0000004B ebx=C35DE588 ecx=00406B8F edx=C35DE589 esi=00406B97
ebp=0022DE38 esp=0022DE20 program=C:\Program\cygwin\bin\man.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022DE38  610A8CE5  (616303BC, 00000000, 0022DE68, 00406A99)
0022DE68  61053F85  (00406B97, 00000001, 616303BC, 0A044460)
0022FEB8  00402EB7  (616303BC, 00000000, 00000000, 00000001)
0022FEF0  004035E6  (00000003, 61631B4C, 0A040330, 0022FF24)
0022FF40  61004F68  (610E4F20, FFFFFFFE, 000003D4, 610E4E44)
0022FF90  6100523D  (00000000, 00000000, 8043138F, 00000000)
0022FFB0  00409382  (0040318E, 037F0009, 0022FFF0, 7C4E87F5)
0022FFC0  0040103C  (00000000, 00000000, 7FFDF000, 00000000)
0022FFF0  7C4E87F5  (00401000, 00000000, 000000C8, 00000100)
End of stack trace$
                 `-- minor problem: missing linefeed?


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]