Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268719 - app-forensics/rkhunter-1.3.4-r2: output of cronjob with --update enabled still uses colours
Summary: app-forensics/rkhunter-1.3.4-r2: output of cronjob with --update enabled stil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 12:07 UTC by Stefan Wimmer
Modified: 2009-12-19 19:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Diff for no-coloured output of the update (rkhunter-1.3.4-r2.diff,458 bytes, patch)
2009-05-05 12:08 UTC, Stefan Wimmer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Wimmer 2009-05-05 12:07:53 UTC
If you use UPDATE=yes in /etc/cron.daily/rkhunter you get coloured output in the reporting mail.

Reproducible: Always

Steps to Reproduce:
1. UPDATE=yes in /etc/cron.daily/rkhunter
2. Run /etc/cron.daily/rkhunter


Actual Results:  
Checking rkhunter data files...
  Checking file mirrors.dat^[[34C[ No update ]
  Checking file programs_bad.dat^[[29C[ No update ]
  Checking file backdoorports.dat^[[28C[ No update ]
  Checking file suspscan.dat^[[33C[ No update ]
  Checking file i18n/cn^[[38C[ No update ]
  Checking file i18n/de^[[38C[ No update ]
  Checking file i18n/en^[[38C[ No update ]
  Checking file i18n/zh^[[38C[ No update ]
  Checking file i18n/zh.utf8^[[33C[ No update ]


Expected Results:  
Checking rkhunter data files...
  Checking file mirrors.dat                                  [ No update ]
  Checking file programs_bad.dat                             [ No update ]
  Checking file backdoorports.dat                            [ No update ]
  Checking file suspscan.dat                                 [ No update ]
  Checking file i18n/cn                                      [ No update ]
  Checking file i18n/de                                      [ No update ]
  Checking file i18n/en                                      [ No update ]
  Checking file i18n/zh                                      [ No update ]
  Checking file i18n/zh.utf8                                 [ No update ]


The resolution is to simply add --nocolor to the update command in the cron script. I'll add a diff for that ...
Comment 1 Stefan Wimmer 2009-05-05 12:08:49 UTC
Created attachment 190407 [details, diff]
Diff for no-coloured output of the update
Comment 2 William Hubbs gentoo-dev 2009-12-19 19:23:03 UTC
This is fixed in 1.3.4-r3.