Bug 18423 - run-parts $dir gives error if $dir contains .keep file
Bug#: 18423 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: seemant@gentoo.org Reported By: j+gentoo@salmi.ch
Component: Ebuilds
URL: 
Summary: run-parts $dir gives error if $dir contains .keep file
Keywords:  
Status Whiteboard: 
Opened: 2003-03-29 08:06 0000
Description:   Opened: 2003-03-29 08:06 0000
if running run-parts from sys-apps/debianutils for a dir containing a .keep
file, run-parts gives an error msg like 'component $dir/.keep is not an
executable plain file'. sys-apps/anacron for instance runs run-parts for the
directories /etc/cron.{daily,weekly,monthly}, which contain .keep files. this
results in error messages mailed to root.

Reproducible: Always
Steps to Reproduce:
$ run-parts --test /etc/cron.weekly
Actual Results:  
run-parts: component /etc/cron.weekly/.keep is not an executable plain file

Expected Results:  
IMHO no error message for .keep files should be printed.

solution #1: run-parts could be patched to ignore .keep files (i'll submit a patch)
solution #2: .keep files in /etc/cron.{daily,weekly,monthly} could be renamed to
.keep.disabled (run-parts ignores files matching *.disabled by default). for
this to happen, sys-apps/baselayout and sys-apps/cronbase and possibly ebuild.sh
would have to be patched.

------- Comment #1 From Jukka Salmi 2003-03-29 08:07:48 0000 -------
Created an attachment (id=9985) [details]
patches run-parts to ignore .keep files

------- Comment #2 From Jukka Salmi 2003-03-29 08:10:52 0000 -------
solution #3: .keep files could be chmod()ed to 0755...

------- Comment #3 From Seemant Kulleen (RETIRED) 2003-04-01 02:52:09 0000 -------
they're not executable, so I rather prefer the patch method.

------- Comment #4 From Seemant Kulleen (RETIRED) 2003-04-03 19:21:54 0000 -------
fixed in -r1. thanks for that.