unzip: robustify overwrite checks
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 20 Jul 2017 16:56:05 +0000 (18:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 20 Jul 2017 16:56:05 +0000 (18:56 +0200)
commitbff9bbc73fce9a3886992f413fb18fe78c007cbb
tree0179f8b214164c11499926e528c5c0688b707031
parent13ae85edd1e097299297062a1054ccbe8fb97fe3
unzip: robustify overwrite checks

function                                             old     new   delta
get_lstat_mode                                         -      55     +55
unzip_main                                          2667    2642     -25
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 55/-25)             Total: 30 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/unzip.c