[tmpwatch 0005266]: tmpwatch is attempting to remove non-empty directories
Mantis Bug Tracker via bug-notifications
bug-notifications at lists.opencsw.org
Mon Feb 15 21:39:41 CET 2016
The following issue has been ASSIGNED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5266
======================================================================
Reported By: vchepkov
Assigned To: dam
======================================================================
Project: tmpwatch
Issue ID: 5266
Category: regular use
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2016-02-12 15:53 CET
Last Modified: 2016-02-15 21:39 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 at unstable9s-20140411012129
INSTDATE: Jun 17 2015 16:47
HOTLINE: http://www.opencsw.org/bugtrack/
EMAIL: maciej at opencsw.org
STATUS: completely installed
FILES: 6 installed pathnames
1 shared pathnames
2 directories
2 executables
118 blocks used (approx)
More information about the bug-notifications
mailing list