Fix all warnings in source3 with gcc4.3. Jeremy. (cherry picked from samba commit...
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Nov 2009 13:31:29 +0000 (14:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:48 +0000 (08:03 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/tools/tdbtool.c

index 98b89a0470ad1e92424f1f620a9792548890a4f2..193140b801dae1e8973955b32090f28419198be9 100644 (file)
@@ -569,7 +569,9 @@ static int do_command(void)
             return 0;
        case CMD_SYSTEM:
            /* Shell command */
-           system(arg1);
+           if (system(arg1) == -1) {
+               terror("system() call failed\n");
+           }
            return 0;
        case CMD_QUIT:
            return 1;