proton: Also catch IOErrors from fcntl

(cherry picked from commit 7493508dc8)
This commit is contained in:
Andrew Eikum 2020-10-13 07:46:59 -05:00
parent 223c7a8b7d
commit d4838fba75

2
proton
View file

@ -84,7 +84,7 @@ def set_dir_casefold_bit(dir_path):
if fcntl.ioctl(dr, EXT2_IOC_GETFLAGS, dat, True) >= 0:
dat[0] = dat[0] | EXT4_CASEFOLD_FL
fcntl.ioctl(dr, EXT2_IOC_SETFLAGS, dat, False)
except OSError:
except (OSError, IOError):
#no problem
pass
os.close(dr)