diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-02 01:44:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-02 01:45:29 +0200 |
commit | 21bdae12e11ae20460715475d8a0c991f15464ac (patch) | |
tree | 4dc9ab341fa40adbf1cabb5765851fee49df759b /src | |
parent | 26b8e979c8a6340180716f686dbe26e4906bc568 (diff) |
tmpfiles: don't exit with an error code if we cannot access all files
This is just to avoid confusion if people use stuff like FUSE file
systems or SELinux which might disallow access to files even if tmpfiles
is running as root.
We still log away if we cannot access a file, but we do not return a
failure exit code in the end.
Diffstat (limited to 'src')
-rw-r--r-- | src/tmpfiles.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 954c3b7cf3..4394f0dd55 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -983,15 +983,11 @@ int main(int argc, char *argv[]) { strv_free(files); } - - HASHMAP_FOREACH(i, globs, iterator) - if (process_item(i) < 0) - r = EXIT_FAILURE; + process_item(i); HASHMAP_FOREACH(i, items, iterator) - if (process_item(i) < 0) - r = EXIT_FAILURE; + process_item(i); finish: while ((i = hashmap_steal_first(items))) |