mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Minor, do not append errno message
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
58239b897b
commit
064c7682fc
1 file changed
+1
-1
+1
-1
@@ -474,7 +474,7 @@ void conf_save_service(int type, char *cfg, char *file)
|
|||||||
mkpath(FINIT_RUNPATH_, 0755);
|
mkpath(FINIT_RUNPATH_, 0755);
|
||||||
snprintf(fn, sizeof(fn), "%s/%s", FINIT_RUNPATH_, file);
|
snprintf(fn, sizeof(fn), "%s/%s", FINIT_RUNPATH_, file);
|
||||||
if (fexist(fn))
|
if (fexist(fn))
|
||||||
warn("File %s already exists, overwriting.", fn);
|
warnx("File %s already exists, overwriting.", fn);
|
||||||
fp = fopen(fn, "w");
|
fp = fopen(fn, "w");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
err(1, "Failed creating %s", fn);
|
err(1, "Failed creating %s", fn);
|
||||||
|
|||||||
Reference in new issue
Block a user