chiark / gitweb /
unit: move UnitDependency to unit-name
[elogind.git] / src / shared / fileio-label.c
index 417ca5695a956e62455d3b15873e38fdabed9003..d5ce24c0d99d02266025a624e1f0190a3f7889d8 100644 (file)
@@ -34,7 +34,7 @@ int write_string_file_atomic_label(const char *fn, const char *line) {
         if (r < 0)
                 return r;
 
-        write_string_file_atomic(fn, line);
+        r = write_string_file_atomic(fn, line);
 
         label_context_clear();
 
@@ -48,7 +48,7 @@ int write_env_file_label(const char *fname, char **l) {
         if (r < 0)
                 return r;
 
-        write_env_file(fname, l);
+        r = write_env_file(fname, l);
 
         label_context_clear();
 
@@ -59,7 +59,7 @@ int fopen_temporary_label(const char *target,
                           const char *path, FILE **f, char **temp_path) {
         int r;
 
-        r = label_context_set("/etc/passwd", S_IFREG);
+        r = label_context_set(target, S_IFREG);
         if (r < 0)
                 return r;