139 |
if (file == NULL) |
if (file == NULL) |
140 |
die("cannot close no existent file."); |
die("cannot close no existent file."); |
141 |
if (file->compress) { |
if (file->compress) { |
142 |
if (pclose(file->op) < 0) { |
if (pclose(file->op) != 0) { |
143 |
char command[MAXFILLEN]; |
char command[MAXFILLEN]; |
144 |
snprintf(command, sizeof(command), "gzip -c >%s", file->path); |
snprintf(command, sizeof(command), "gzip -c >%s", file->path); |
145 |
die("command '%s' failed.", command); |
die("command '%s' failed.", command); |
831 |
} |
} |
832 |
if (map_file) |
if (map_file) |
833 |
fclose(FILEMAP); |
fclose(FILEMAP); |
834 |
if (pclose(FIND) < 0) |
if (pclose(FIND) != 0) |
835 |
die("cannot traverse directory.(%s)", command); |
die("cannot traverse directory.(%s)", command); |
836 |
while (count_stack(dirstack) > 0) { |
while (count_stack(dirstack) > 0) { |
837 |
char *parent; |
char *parent; |
934 |
} |
} |
935 |
put_included(last, buf); |
put_included(last, buf); |
936 |
} |
} |
937 |
if (pclose(PIPE) < 0) |
if (pclose(PIPE) != 0) |
938 |
die("terminated abnormally."); |
die("terminated abnormally."); |
939 |
|
|
940 |
for (inc = first_inc(); inc; inc = next_inc()) { |
for (inc = first_inc(); inc; inc = next_inc()) { |