Ticlet #1909: fix of extfs_read_archive() function.
Fixed bug introduced in ad9c1daad88d4972f81fd73ab06fb8b90027cb7a commit: incorrect handling of "." and ".." directories within atchives. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
c2fc1b86f3
Коммит
58909eb708
@ -486,7 +486,7 @@ extfs_read_archive (int fstype, const char *name, struct archive **pparc)
|
||||
*(p++) = '\0';
|
||||
q = cfn;
|
||||
}
|
||||
if (S_ISDIR (hstat.st_mode) && (strcmp (p, ".") || !strcmp (p, "..") == 0))
|
||||
if (S_ISDIR (hstat.st_mode) && (strcmp (p, ".") == 0 || strcmp (p, "..") == 0))
|
||||
goto read_extfs_continue;
|
||||
pent = extfs_find_entry (current_archive->root_entry, q, TRUE, FALSE);
|
||||
if (pent == NULL)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user