Bug 5056 - logrotate scripts still uses incorrect redirection
Summary: logrotate scripts still uses incorrect redirection
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: 4.1.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.2.0
Assignee: Peter Åstrand
URL:
Keywords: hean01_tester, prosaic
Depends on: 4471
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-31 09:46 CEST by Peter Åstrand
Modified: 2014-04-14 09:18 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2014-03-31 09:46:13 CEST
Moved from https://www.cendio.com/bugzilla/show_bug.cgi?id=4471#c14 :

Actually, the resolution to this problem, which I assume was first removing

  &> /dev/null

and then replacing this with

  2>&1 > /dev/null

(which is what I find under /etc/logrotate.d in release 4.1.1) is still not
accurate.

It should be

 > /dev/null 2>&1

(First stdout is redirected to /dev/null, then this redirection is copied to
stderr.)

Best regards,
Mikael D.
Comment 1 Peter Åstrand cendio 2014-04-10 10:15:16 CEST
Fixed in r28829.
Comment 2 Henrik Andersson cendio 2014-04-14 09:15:42 CEST
Tested using build 4323 on Ubuntu 12.04, works as expected.

Note You need to log in before you can comment on or make changes to this bug.