projects
/
services
/
createrepo_c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f7ebaa
)
compression_wrapper: Remove magic_check() (Due RhBug: 980507)
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 3 Jul 2013 10:13:08 +0000
(12:13 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 3 Jul 2013 10:26:45 +0000
(12:26 +0200)
src/compression_wrapper.c
patch
|
blob
|
history
diff --git
a/src/compression_wrapper.c
b/src/compression_wrapper.c
index 2c4b38e75fbaf676af07d9c484e1b05082a59070..cad0c90877b03d1a550de826bf020355e997e769 100644
(file)
--- a/
src/compression_wrapper.c
+++ b/
src/compression_wrapper.c
@@
-166,13
+166,6
@@
cr_detect_compression(const char *filename, GError **err)
return CR_CW_UNKNOWN_COMPRESSION;
}
- if (magic_check(myt, NULL) == -1) {
- g_critical("%s: magic_check() failed: %s", __func__, magic_error(myt));
- g_set_error(err, CR_COMPRESSION_WRAPPER_ERROR, CRE_MAGIC,
- "magic_check() failed: %s", magic_error(myt));
- return CR_CW_UNKNOWN_COMPRESSION;
- }
-
const char *mime_type = magic_file(myt, filename);
if (mime_type) {