chiark / gitweb /
util: when creating temporary file names, allow including extra id string in it
[elogind.git] / src / shared / copy.c
index 1282cb88be7f076b3e390a3131a301da6c7304c0..230e7e4d3fc3a793431fc5165a5c3631dbbf0d3b 100644 (file)
@@ -396,7 +396,7 @@ int copy_file_atomic(const char *from, const char *to, mode_t mode, bool replace
         assert(from);
         assert(to);
 
-        r = tempfn_random(to, &t);
+        r = tempfn_random(to, NULL, &t);
         if (r < 0)
                 return r;