chiark / gitweb /
tmpfiles: only execute chmod()/chown() when needed
authorMichael Olbrich <m.olbrich@pengutronix.de>
Sun, 17 Aug 2014 07:45:00 +0000 (09:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Aug 2014 16:25:30 +0000 (18:25 +0200)
commit1924a97db5d55b6537a6c6ef84944caab93cd19c
treef4c5580566022758bfeb0d6a8e14b40fb4a6318a
parent630a4d9ea7298fb4a494662cbb4871069143ff56
tmpfiles: only execute chmod()/chown() when needed

This avoids errors like this, when the paths are already there with the
correct permissions and owner:

chmod(/var/spool) failed: Read-only file system
src/tmpfiles/tmpfiles.c