summaryrefslogtreecommitdiff
path: root/src/sysexec.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-26 14:58:12 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-26 14:58:12 +0000
commitf72ce0dc37f0b66ba2651b2fe7d39603f089abed (patch)
tree2facf10a91a09dbe5af9282639bfdaa98f98130f /src/sysexec.h
parentadded -4 and -6 switches to udp socket (diff)
moved from %m to %s and strerror
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;