From e156347e0480d3eee4877463297149ae96e34f8c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 Jun 2014 19:36:08 +0200 Subject: tmpfiles: make sure "C" doesn't copy anything if the destination already exists Previously it would recursively copy the entire tree in, and descend into subdirectories even if the destination already exists. Let's do what the documentation says and not do that. If files down the tree shall be copied too, they should get their own "C" lines. --- man/tmpfiles.d.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'man/tmpfiles.d.xml') diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 6b2753549c..f3cc2ea50c 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -225,7 +225,17 @@ L /tmp/foobar - - - - /dev/null C - Recursively copy a file or directory, if the destination files or directories don't exist yet. + Recursively + copy a file or directory, if + the destination files or + directories don't exist + yet. Note that this command + will not descend into + subdirectories if the + destination directory already + exists, instead the entire + copy operation is + skipped. -- cgit v1.2.3-54-g00ecf