[prev in list] [next in list] [prev in thread] [next in thread]
List: netsaintplug-devel
Subject: Re: [Netsaintplug-devel] check_hpjd - shell metacharacter bug
From: Subhendu Ghosh <sghosh () sghosh ! org>
Date: 2002-11-13 13:35:13
[Download RAW message or body]
Thanks
Will apply it to the nagiosplugins.
-sg
On Wed, 13 Nov 2002, Alexander Haderer wrote:
> hi,
>
> I found a bug in 1.2.9-4 plugins/check_hpjd.c and fixed it.
>
> check_hpjd checks HP JedDirect print server. The returned message (display
> message) of the printserver may contain some shell metacharacters that will
> result in unreadable or unsent email notifications in the case of email
> notification. This is because Netsaints notify by Email command uses a
> shell commandline where the chars "'^`$ has a special meaning for the
> invoked shell.
>
> I found the bug with a JetDirect printserver switched to german Messages
> where all display messages where surrounded by double quotes like ("BITTE
> LADEN SIE A4")
>
> The patch supplied fixes this bug for check_hpjd by converting shell
> critical characters mentioned above to space 0x32.
>
> This patch is for version 1.2.9-4
>
> This patch was made using "diff -U 3 oldfile newfile"
>
> With best regards
>
> Alexander Haderer
>
--
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Netsaintplug-devel mailing list
Netsaintplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netsaintplug-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic