Report errror if the first magic character doesnt match
diff --git a/archival/gunzip.c b/archival/gunzip.c
index ca7e343..fff3a65 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -169,6 +169,7 @@
magic2 = xread_char(src_fd);
#ifdef CONFIG_FEATURE_UNCOMPRESS
if (magic2 == 0x9d) {
+ printf("uncompress\n");
return(uncompress(src_fd, dst_fd));
} else
#endif
@@ -182,6 +183,8 @@
} else {
error_msg_and_die("Invalid magic\n");
}
+ } else {
+ error_msg_and_die("Invalid magic\n");
}
if ((status != EXIT_SUCCESS) && (new_path)) {