Code

Inadequate quoting for PS_FORMAT & removal of grep "*** for Tru64
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 12 Feb 2003 22:21:55 +0000 (22:21 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 12 Feb 2003 22:21:55 +0000 (22:21 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@320 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index d9de3df450be725e37f094941569acdfe4d69551..b3864effe80225b98e2809fecb13dc5f244375e0 100644 (file)
@@ -501,7 +501,7 @@ then
        AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -ao 'stat user ppid args'",[Verbatim command to execute for ps in check_netsaint])
        EXTRAS="$EXTRAS check_nagios"
        AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -ao 'stat uid ppid comm args'")
-       AC_DEFINE_UNQUOTED(PS_FORMAT,"%s%*[ +] %d %d %s %n",[Format string for scanning ps output in check_procs])
+       AC_DEFINE_UNQUOTED(PS_FORMAT,[["%s%*[ +] %d %d %s %n"]],[Format string for scanning ps output in check_procs])
        AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -ao 'vsz comm'",[])
        AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[])
        AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[])
@@ -728,7 +728,7 @@ AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup)
 if test -n "$ac_cv_path_PATH_TO_NSLOOKUP"
 then
        AC_MSG_CHECKING("nslookup syntax")
-       if [nslookup -sil 127.0.0.1 2>&1 | grep "*** Invalid option: sil" >/dev/null]
+       if [nslookup -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null]
        then
                AC_MSG_RESULT("$PATH_TO_NSLOOKUP")
                AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$PATH_TO_NSLOOKUP",[path and args for nslookup])