summaryrefslogtreecommitdiff
path: root/src/basic/fileio-label.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-11 10:23:36 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-11 10:23:36 -0400
commit39c38d773fbe2b4f76ff29ecd3344640efb9a86c (patch)
treefcdb651664382d4696f35ece2ab836084529ac30 /src/basic/fileio-label.c
parent488ab41cb89828e68162f34fb68241bbda700c05 (diff)
downloadsystemd-39c38d773fbe2b4f76ff29ecd3344640efb9a86c.tar.gz
basic/fileio: extend atomic file writing with timestamp setting
There should be no functional change.
Diffstat (limited to 'src/basic/fileio-label.c')
-rw-r--r--src/basic/fileio-label.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fileio-label.c b/src/basic/fileio-label.c
index 66dbc0fe1e..ef51c49395 100644
--- a/src/basic/fileio-label.c
+++ b/src/basic/fileio-label.c
@@ -24,14 +24,14 @@
#include "fileio.h"
#include "selinux-util.h"
-int write_string_file_atomic_label(const char *fn, const char *line) {
+int write_string_file_atomic_label_ts(const char *fn, const char *line, struct timespec *ts) {
int r;
r = mac_selinux_create_file_prepare(fn, S_IFREG);
if (r < 0)
return r;
- r = write_string_file(fn, line, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
+ r = write_string_file_ts(fn, line, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC, ts);
mac_selinux_create_file_clear();