]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
remove duplicate expressions in entry_copy_bhfi()
authorMaks Naumov <maksqwe1@ukr.net>
Wed, 16 Apr 2014 22:02:39 +0000 (01:02 +0300)
committerMaks Naumov <maksqwe1@ukr.net>
Wed, 16 Apr 2014 22:02:39 +0000 (01:02 +0300)
libarchive/archive_read_disk_windows.c

index 5c0f3666ab4114e9076317cf34d7d9e3293a3087..fb06f26fa4dce59d78477feb901ef07a537263df 100644 (file)
@@ -1851,8 +1851,6 @@ entry_copy_bhfi(struct archive_entry *entry, const wchar_t *path,
                                break;
                        case L'C': case L'c':
                                if (((p[2] == L'M' || p[2] == L'm' ) &&
-                                   (p[3] == L'D' || p[3] == L'd' )) ||
-                                   ((p[2] == L'M' || p[2] == L'm' ) &&
                                    (p[3] == L'D' || p[3] == L'd' )))
                                        mode |= S_IXUSR | S_IXGRP | S_IXOTH;
                                break;