mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: stay on one file system when cleaning
Cleaning the directory of an entry with an age went into whatever was
mounted below it:
d /srv - - - 10d
tmpfiles --clean t.conf
With a disk mounted on /srv/data this removed every file on it older
than ten days.
Give nftw() FTW_MOUNT, so it stays on the file system of the directory.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+47
-1
No files matched your search
@@ -85,6 +85,7 @@ EXTRA_DIST += tmpfiles-acl.sh
|
||||
EXTRA_DIST += tmpfiles-arg.sh
|
||||
EXTRA_DIST += tmpfiles-perm.sh
|
||||
EXTRA_DIST += tmpfiles-boot.sh
|
||||
EXTRA_DIST += tmpfiles-clean.sh
|
||||
EXTRA_DIST += tmpfiles-order.sh
|
||||
EXTRA_DIST += tmpfiles-unsupported.sh
|
||||
EXTRA_DIST += unexpected-restart.sh
|
||||
@@ -168,6 +169,7 @@ TESTS += tmpfiles-acl.sh
|
||||
TESTS += tmpfiles-arg.sh
|
||||
TESTS += tmpfiles-perm.sh
|
||||
TESTS += tmpfiles-boot.sh
|
||||
TESTS += tmpfiles-clean.sh
|
||||
TESTS += tmpfiles-order.sh
|
||||
TESTS += tmpfiles-unsupported.sh
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user