return proper exit code

This commit is contained in:
Дмитрий Левин 2003-05-01 12:19:59 +00:00
parent 799993ff88
commit fa52362b70

View File

@ -63,9 +63,11 @@ int main(int argc, char **argv)
rc = ufdCopy(gzdi, fdo);
rc = (rc <= 0) ? EXIT_FAILURE : EXIT_SUCCESS;
Fclose(fdo);
if (Fclose(fdo) < 0)
rc = EXIT_FAILURE;
Fclose(gzdi); /* XXX gzdi == fdi */
if (Fclose(gzdi) < 0) /* XXX gzdi == fdi */
rc = EXIT_FAILURE;
return rc;
}