From 464433c911a11cca53472a117979fef1467d6d14 Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Mon, 13 Mar 2023 18:43:54 +0100 Subject: [PATCH] cosmetic fix for --force-timestamps, avoid touching other filesystems by using find-option -xdev and so: do not try to operate on e.g. /proc which avoid messages like: touch: setting times of '/proc/fs/nfsd': Operation not permitted touch: setting times of '/proc/1': Operation not permitted closes #264 --- sysa/helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysa/helpers.sh b/sysa/helpers.sh index 2e3ca93..baa466b 100755 --- a/sysa/helpers.sh +++ b/sysa/helpers.sh @@ -460,7 +460,7 @@ default() { # This function needs `touch` that supports --no-dereference # (at least coreutils 8.1). canonicalise_all_files_timestamp() { - find / -exec touch --no-dereference -t 197001010000.00 {} + + find / -xdev -exec touch --no-dereference -t 197001010000.00 {} + } populate_device_nodes() {