Bug 214034

Summary: tmpwatch complains about non-existen directories
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: tmpwatchAssignee: Miloslav Trmač <mitr>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.9.10-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-05 01:53:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2006-11-04 21:39:25 UTC
Description of problem:

After an update to tmpwatch-2.9.9-1 a tmpwatch run on /tmp in
/etc/cron.daily/tmpwatch bails out with:

error: cannot resolve /tmp/.XIM-unix: No such file or directory

A check with strace shows that after this error truly terminates
this invocation.  In such case something like that is needed in
/etc/cron.daily/tmpwatch to make it somewhat useful:

skiplist="
/tmp/.X11-unix
/tmp/.XIM-unix
/tmp/.font-unix
/tmp/.ICE-unix
/tmp/.Test-unix
"

skipopts=$( for d in ${skiplist} ; do
   [ -d $d ] && echo -n " -x $d"
done )

/usr/sbin/tmpwatch ${skipopts} 10d /tmp

After such changes it will work.

Version-Release number of selected component (if applicable):
tmpwatch-2.9.9-1

How reproducible:
always

Comment 1 Miloslav Trmač 2006-11-05 01:53:37 UTC
Oops, I should have noticed this.  Fixed in rawhide tmpwatch-2.9.10.

Thanks for your report.