1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fixed system() return handling

(This used to be ctdb commit 0fa75d7429f6f6e58f98c3cebccf6014eb3b474e)
This commit is contained in:
Andrew Tridgell 2007-05-29 17:00:08 +10:00
parent a7a0f99d98
commit 7de87f8492

View File

@ -275,6 +275,9 @@ int ctdb_event_script(struct ctdb_context *ctdb, const char *fmt, ...)
CTDB_NO_MEMORY(ctdb, cmdstr);
ret = system(cmdstr);
if (ret != -1) {
ret = WEXITSTATUS(ret);
}
talloc_free(cmdstr);
talloc_free(options);