Whamcloud - gitweb
b=13639
[fs/lustre-release.git] / lustre / liblustre / tests / recovery_small.c
index 6af93f1..79e950b 100644 (file)
@@ -132,7 +132,7 @@ void cleanup_dir(const char *path)
             sprintf(cmd,                                                   \
                     "%s %s \"echo %lu > /proc/sys/lustre/fail_loc\"",      \
                     ssh_cmd, mds_server, drop_arr[drop_index].code);       \
-            if (system(cmd)) {                                             \
+            if ((rc = system(cmd))) {                                      \
                 printf("error excuting remote command: %d\n", rc);         \
                 exit(rc);                                                  \
             }                                                              \