1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

machined: fix writability check for GPT images

This commit is contained in:
Lennart Poettering 2014-12-24 16:40:30 +01:00
parent 4a4d89b682
commit 51929718dd

View File

@ -167,7 +167,7 @@ static int image_make(int dfd, const char *name, const char *path, Image **ret)
r = image_new(IMAGE_GPT, r = image_new(IMAGE_GPT,
name, name,
path, path,
!!(st.st_mode & 0111), !!(st.st_mode & 0222),
timespec_load(&st.st_mtim), timespec_load(&st.st_mtim),
0, 0,
ret); ret);