mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-01 07:04:37 +02:00
proton: Also catch IOErrors from fcntl
(cherry picked from commit 7493508dc88dc91f2d9f431c20ea63cd42f2e342)
This commit is contained in:
parent
223c7a8b7d
commit
d4838fba75
2
proton
2
proton
@ -84,7 +84,7 @@ def set_dir_casefold_bit(dir_path):
|
|||||||
if fcntl.ioctl(dr, EXT2_IOC_GETFLAGS, dat, True) >= 0:
|
if fcntl.ioctl(dr, EXT2_IOC_GETFLAGS, dat, True) >= 0:
|
||||||
dat[0] = dat[0] | EXT4_CASEFOLD_FL
|
dat[0] = dat[0] | EXT4_CASEFOLD_FL
|
||||||
fcntl.ioctl(dr, EXT2_IOC_SETFLAGS, dat, False)
|
fcntl.ioctl(dr, EXT2_IOC_SETFLAGS, dat, False)
|
||||||
except OSError:
|
except (OSError, IOError):
|
||||||
#no problem
|
#no problem
|
||||||
pass
|
pass
|
||||||
os.close(dr)
|
os.close(dr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user