summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-04-30 20:50:38 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-05-06 00:10:40 -0400
commitf44b28fda0a9ac88b0b20c475fc1d2f2036e7f71 (patch)
tree0bda1fdfee07ce2c190d2a45a179617190c24762 /src/timedate
parent3e7f33ada92ccc9da96b2b1c9af1f123d09ad954 (diff)
tmpfiles: try to handle read-only file systems gracefully
On read-only filesystems trying to create the target will not fail with EEXIST but with EROFS. Handle EROFS by checking if the target already exists, and if empty when truncating. This avoids reporting errors if tmpfiles doesn't actually needs to do anything. [zj: revert condition to whitelist rather then blacklisting, and add goto to avoid stat'ting twice.]
Diffstat (limited to 'src/timedate')
0 files changed, 0 insertions, 0 deletions