Rev 389: fixed system() return handling in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Tue May 29 07:00:08 GMT 2007
------------------------------------------------------------
revno: 389
revision-id: tridge at samba.org-20070529070008-jdte02ed9d9c8z4b
parent: tridge at samba.org-20070529063450-63ene1tr08qffyf9
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-05-29 17:00:08 +1000
message:
fixed system() return handling
modified:
takeover/system.c system.c-20070525071636-a5n1ihghjtppy08r-3
=== modified file 'takeover/system.c'
--- a/takeover/system.c 2007-05-29 02:55:24 +0000
+++ b/takeover/system.c 2007-05-29 07:00:08 +0000
@@ -275,6 +275,9 @@
CTDB_NO_MEMORY(ctdb, cmdstr);
ret = system(cmdstr);
+ if (ret != -1) {
+ ret = WEXITSTATUS(ret);
+ }
talloc_free(cmdstr);
talloc_free(options);
More information about the samba-cvs
mailing list