* cpio.c (cpio_read_head): Check return value of cpio_find_head,
because it's not equal to super->u.cpio.type in case of errors.
Этот коммит содержится в:
родитель
fdc234060f
Коммит
78940c0e53
@ -1,3 +1,8 @@
|
|||||||
|
2001-08-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* cpio.c (cpio_read_head): Check return value of cpio_find_head,
|
||||||
|
because it's not equal to super->u.cpio.type in case of errors.
|
||||||
|
|
||||||
2001-08-16 Pavel Roskin <proski@gnu.org>
|
2001-08-16 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* direntry.c (vfs_s_free_super): Remove i18n on commented out
|
* direntry.c (vfs_s_free_super): Remove i18n on commented out
|
||||||
|
@ -183,8 +183,7 @@ static int cpio_open_cpio_file(vfs *me, vfs_s_super *super, char *name)
|
|||||||
|
|
||||||
static int cpio_read_head(vfs *me, vfs_s_super *super)
|
static int cpio_read_head(vfs *me, vfs_s_super *super)
|
||||||
{
|
{
|
||||||
cpio_find_head(me, super);
|
switch(cpio_find_head(me, super)) {
|
||||||
switch(super->u.cpio.type) {
|
|
||||||
case CPIO_UNKNOWN:
|
case CPIO_UNKNOWN:
|
||||||
return -1;
|
return -1;
|
||||||
case CPIO_BIN:
|
case CPIO_BIN:
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user