<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>18423</bug_id>
          
          <creation_ts>2003-03-29 08:06 0000</creation_ts>
          <short_desc>run-parts $dir gives error if $dir contains .keep file</short_desc>
          <delta_ts>2003-04-03 19:21:54 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>j+gentoo@salmi.ch</reporter>
          <assigned_to>seemant@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-03-29 08:06:51 0000</bug_when>
            <thetext>if running run-parts from sys-apps/debianutils for a dir containing a .keep
file, run-parts gives an error msg like &apos;component $dir/.keep is not an
executable plain file&apos;. 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&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-03-29 08:07:48 0000</bug_when>
            <thetext>Created an attachment (id=9985)
patches run-parts to ignore .keep files
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-03-29 08:10:52 0000</bug_when>
            <thetext>solution #3: .keep files could be chmod()ed to 0755...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-04-01 02:52:09 0000</bug_when>
            <thetext>they&apos;re not executable, so I rather prefer the patch method.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-04-03 19:21:54 0000</bug_when>
            <thetext>fixed in -r1. thanks for that.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9985</attachid>
            <date>2003-03-29 08:07 0000</date>
            <desc>patches run-parts to ignore .keep files</desc>
            <filename>run-parts.c.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHJ1bi1wYXJ0cy5jCTIwMDMtMDMtMjkgMTM6MTM6NTkuMDAwMDAwMDAwICswMTAwCisrKyBy
dW4tcGFydHNfa2VlcC5jCTIwMDMtMDMtMjkgMTM6MTA6MzYuMDAwMDAwMDAwICswMTAwCkBAIC0x
MjAsNyArMTIwLDggQEAKICAgICAgICAgICAgICFmbm1hdGNoKCIqfiIsIGMsIDApIHx8CiAgICAg
ICAgICAgICAhZm5tYXRjaCgiKi5wcmVfZmNvcHkiLCBjLCAwKSB8fAogICAgICAgICAgICAgIWZu
bWF0Y2goIioubm90c2xvY2F0ZSIsIGMsIDApIHx8Ci0gICAgICAgICAgICAhZm5tYXRjaCgiKi5k
aXNhYmxlZCIsIGMsIDApICk7CisgICAgICAgICAgICAhZm5tYXRjaCgiKi5kaXNhYmxlZCIsIGMs
IDApIHx8CisgICAgICAgICAgICAhZm5tYXRjaCgiLmtlZXAiLCBjLCAwKSApOwogfQogCiAK
</data>        

          </attachment>
    </bug>

</bugzilla>