A NOTE has been added to this issue. ====================================================================== https://www.opencsw.org/mantis/view.php?id=5266 ====================================================================== Reported By: vchepkov Assigned To: ====================================================================== Project: tmpwatch Issue ID: 5266 Category: regular use Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2016-02-12 15:53 CET Last Modified: 2016-02-12 16:05 CET ====================================================================== Summary: tmpwatch is attempting to remove non-empty directories Description: if files are being modified in a directory, but directory itself is not, tmpwatch is trying to remove non-empty directory, for example:
tmpwatch -m 7d /devl/data/test_delivery/ produced the following output: error: failed to rmdir /devl/data/test_delivery/dtd: File exists bash $ ls -altr /devl/data/test_delivery/dtd total 712 drwxrwxr-x 2 xxxxxx xxx 4096 Feb 2 14:23 ./ -rw-rw-r-- 1 xxxxxx xxx 35316 Feb 5 11:48 chars.sgm -rw-rw-r-- 1 xxxxxx xxx 8902 Feb 5 11:48 obsolete.sgm -rw-rw-r-- 1 xxxxxx xxx 398 Feb 5 11:48 pdm-mod.catalog -rw-rw-r-- 1 xxxxxx xxx 3078 Feb 5 11:48 pdm-mod.decl -rw-rw-r-- 1 xxxxxx xxx 1276 Feb 5 11:48 pdm-mod.dtd -rw-rw-r-- 1 xxxxxx xxx 275556 Feb 5 11:48 pdm-mod.sgm drwxrwxr-x 9 xxxxxx xxx 12288 Feb 10 10:52 ../ ====================================================================== ---------------------------------------------------------------------- (0011086) vchepkov (reporter) - 2016-02-12 16:05 https://www.opencsw.org/mantis/view.php?id=5266#c11086 ---------------------------------------------------------------------- forgot to mention. tmpwatch on Linux doesn't act this way # pkginfo -l CSWtmpwatch PKGINST: CSWtmpwatch NAME: tmpwatch - Removes files which haven't been accessed for a period of time CATEGORY: application ARCH: sparc VERSION: 2.10.1,REV=2014.04.11 BASEDIR: / VENDOR: https://fedorahosted.org/tmpwatch/ packaged for CSW by Maciej Blizinski PSTAMP: maciej@unstable9s-20140411012129 INSTDATE: Jun 17 2015 16:47 HOTLINE: http://www.opencsw.org/bugtrack/ EMAIL: [email protected] STATUS: completely installed FILES: 6 installed pathnames 1 shared pathnames 2 directories 2 executables 118 blocks used (approx)
