projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ecd43
)
Report errror if the first magic character doesnt match
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 1 Nov 2002 21:40:52 +0000
(21:40 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 1 Nov 2002 21:40:52 +0000
(21:40 -0000)
archival/gunzip.c
patch
|
blob
|
history
diff --git
a/archival/gunzip.c
b/archival/gunzip.c
index ca7e343cc1b1207a48c5ff8f8b07e4d0bcabcad1..fff3a6577227481cbed7f7d08c6d25b48d592ea2 100644
(file)
--- a/
archival/gunzip.c
+++ b/
archival/gunzip.c
@@
-169,6
+169,7
@@
extern int gunzip_main(int argc, char **argv)
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
@@
extern int gunzip_main(int argc, char **argv)
} else {
error_msg_and_die("Invalid magic\n");
}
+ } else {
+ error_msg_and_die("Invalid magic\n");
}
if ((status != EXIT_SUCCESS) && (new_path)) {