if (!pwd_entry) {
gchar strerr_buf[MAX_STRERROR_LEN] = {0,};
+ strerror_r(errno, strerr_buf, MAX_STRERROR_LEN);
DBG("Could not get info for user '%s', error : %s",
- user_name, strerror_r(errno, strerr_buf, MAX_STRERROR_LEN));
+ user_name, strerr_buf);
if (buf)
g_free(buf);
return FALSE;
if (sigaction(SIGUSR1, &sa, NULL) != 0) {
gchar strerr_buf[MAX_STRERROR_LEN] = {0,};
- WARN ("assert(sigaction()) : %s", strerror_r(errno, strerr_buf, MAX_STRERROR_LEN));
+ strerror_r(errno, strerr_buf, MAX_STRERROR_LEN);
+ WARN ("assert(sigaction()) : %s", strerr_buf);
}
tlm_log_init("TLM_AUTH_PLUGIN");
if (!argv)
ERR("Getting argv failure");
if ((child_pid = fork()) < 0) {
- ERR("fork() failed: %s", strerror_r(errno, strerr_buf, MAX_STRERROR_LEN));
+ strerror_r(errno, strerr_buf, MAX_STRERROR_LEN);
+ ERR("fork() failed: %s", strerr_buf);
} else if (child_pid == 0) {
/* child process */
INFO("Launching command : %s, pid: %d, ppid: %d\n",
argv[0], getpid (), getppid ());
execvp(argv[0], argv);
- WARN("exec failed: %s", strerror_r(errno, strerr_buf, MAX_STRERROR_LEN));
+ strerror_r(errno, strerr_buf, MAX_STRERROR_LEN);
+ WARN("exec failed: %s", strerr_buf);
} else if (control == 'M') {
ChildInfo *info = g_slice_new0 (ChildInfo);
if (!info) {
if (!(launcher.fp = fopen(file, "r"))) {
gchar strerr_buf[MAX_STRERROR_LEN] = {0,};
- ERR("Failed to open file '%s':%s", file, strerror_r(errno, strerr_buf, MAX_STRERROR_LEN));
+ strerror_r(errno, strerr_buf, MAX_STRERROR_LEN);
+ ERR("Failed to open file '%s':%s", file, strerr_buf);
_tlm_launcher_deinit (&launcher);
return 0;
}