Mageia Bugzilla – Attachment 1458 Details for
Bug 3700
2_a1: bad time argument from /etc/cron.daily/tmpwatch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch by Gordon Lack
GordonLack'sPatch (text/plain), 880 bytes, created by
Marja Van Waes
on 2012-01-29 20:07:49 CET
(
hide
)
Description:
Patch by Gordon Lack
Filename:
MIME Type:
Creator:
Marja Van Waes
Created:
2012-01-29 20:07:49 CET
Size:
880 bytes
patch
obsolete
>Same problem at 2011 (so bumped version). >Whether you see it depends on what you actually have in /tmp >In my case I have .X11-tmp and .XIM-tmp. > >So the "-x /tmp/.X*-unix" expands to: > > -x /tmp/.X11-unix /tmp/.XIM-unix > >and that second path, attached to no keyword, is taken to be a timespec by the >tmpwatch command. > >FIX: > >Two parts to this. >1) -x doesn't take patterns *anyway*, -X does that, so /etc/sysconfig/tmpwatch >needs to contain: > >TMPWATCH_EXCLUDES="-x /tmp/.ICE-unix -X /tmp/.X*-unix -x /tmp/.font-unix -x >/tmp/.Test-unix" > >2) You then have to stop the tmpwatch script in /etc/cron.daily from expanding >this shell pattern (and you can't do that with quoting in a simple setting of >the TMPWATCH_EXCLUDES), so you need to wrap *every* usage of TMPWATCH_EXCLUDES >in "set -f/set +f", e.g.: > >set -f >/usr/sbin/tmpwatch $TMPWATCH_OPTIONS $TMPWATCH_EXCLUDES 10d /tmp >set +f > >
Same problem at 2011 (so bumped version). Whether you see it depends on what you actually have in /tmp In my case I have .X11-tmp and .XIM-tmp. So the "-x /tmp/.X*-unix" expands to: -x /tmp/.X11-unix /tmp/.XIM-unix and that second path, attached to no keyword, is taken to be a timespec by the tmpwatch command. FIX: Two parts to this. 1) -x doesn't take patterns *anyway*, -X does that, so /etc/sysconfig/tmpwatch needs to contain: TMPWATCH_EXCLUDES="-x /tmp/.ICE-unix -X /tmp/.X*-unix -x /tmp/.font-unix -x /tmp/.Test-unix" 2) You then have to stop the tmpwatch script in /etc/cron.daily from expanding this shell pattern (and you can't do that with quoting in a simple setting of the TMPWATCH_EXCLUDES), so you need to wrap *every* usage of TMPWATCH_EXCLUDES in "set -f/set +f", e.g.: set -f /usr/sbin/tmpwatch $TMPWATCH_OPTIONS $TMPWATCH_EXCLUDES 10d /tmp set +f
View Attachment As Raw
Actions:
View
Attachments on
bug 3700
: 1458 |
1825
|
1826