summaryrefslogtreecommitdiff
path: root/src/sysexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysexec.h')
-rw-r--r--src/sysexec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysexec.h b/src/sysexec.h
index a50ec06..b724433 100644
--- a/src/sysexec.h
+++ b/src/sysexec.h
@@ -58,7 +58,7 @@ int exec_script(const char* script, const char* ifname)
}
execl("/bin/sh", "/bin/sh", script, ifname, NULL);
// if execl return, an error occurred
- log_printf(ERROR, "error on executing script: %m");
+ log_printf(ERROR, "error on executing script: %s", strerror(errno));
return -1;
}
int status = 0;