Menu

#110 LANG=C is needed for calling ipcs+awk under non-english locale

main
closed-fixed
nobody
None
3
2014-08-20
2014-04-08
Ilya Evseev
No

/usr/bin/rkhunter: line 1369:
if [ ${IPCS_CMD} -u 2>/dev/null | awk -F' ' '/segments allocated/ {print $3}' -ne 0 ]; ....
...supposes english locale and works incorrectly under all other locales when ipcs is installed with langpacks (for example, in CentOS).

You need to call it with resetting locale: if [ `LANG=C ${IPCS_CMD} ...

Discussion

  • unSpawn

    unSpawn - 2014-04-18

    Thanks, fixed in CVS.

     
  • unSpawn

    unSpawn - 2014-04-18
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB