Re: [systemd-devel] [PATCH 2/2] tmpfiles: explicitly check for existing files

2014-08-18 Thread Lennart Poettering
On Sun, 17.08.14 09:45, Michael Olbrich (m.olbr...@pengutronix.de) wrote: On read-only filesystems trying to create the target will not fail with EEXIST but with EROFS. Hmm, what precisely fails with EROFS? if there's an existing directory on some read-only fs, and we issue mkdir() on it,

[systemd-devel] [PATCH 2/2] tmpfiles: explicitly check for existing files

2014-08-17 Thread Michael Olbrich
On read-only filesystems trying to create the target will not fail with EEXIST but with EROFS. --- Some more cases that fail on read-only filesystems. src/tmpfiles/tmpfiles.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/tmpfiles/tmpfiles.c