Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: "ML CygWIN" Subject: man - "unsafe not found" Date: Mon, 27 Oct 2003 20:17:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 May I suggest a script named 'unsafe', like this one, in $PATH. -- 8< -- unsafe -- #!/bin/bash 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"); -- http://www.cygwin.com/ml/cygwin/2003-05/msg01031.html 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' /usr/man/man7/vacuum.7 grep: /usr/man/man8c/ipopd.8c: No such file or directory /usr/share/man/man1/patch.1 unsafe: not found Segmentation fault (core dumped) $MANPATH=/usr/local/man:/usr/man:\ /usr/share/man:/usr/autotool/devel/man:\ /usr/X11R6/man:/usr/ssl/man $ 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 edi=C39E5117 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? --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/