mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:41:59 +01:00
add return value check to system() call
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
5d31891f87
commit
bb6e0578b7
@ -172,7 +172,7 @@ int extract_tnef(struct session_data *sdata, struct parser_state *state, char *f
|
|||||||
|
|
||||||
snprintf(buf, sizeof(buf)-1, "%s --unix-paths -C %s %s", HAVE_TNEF, tmpdir, filename);
|
snprintf(buf, sizeof(buf)-1, "%s --unix-paths -C %s %s", HAVE_TNEF, tmpdir, filename);
|
||||||
|
|
||||||
system(buf);
|
if(system(buf) == -1) syslog(LOG_INFO, "error: running %s", buf);
|
||||||
|
|
||||||
n = scandir(tmpdir, &namelist, NULL, alphasort);
|
n = scandir(tmpdir, &namelist, NULL, alphasort);
|
||||||
if(n < 0) syslog(LOG_INFO, "error: reading %s", tmpdir);
|
if(n < 0) syslog(LOG_INFO, "error: reading %s", tmpdir);
|
||||||
|
Loading…
Reference in New Issue
Block a user