From 51929718dd2dc056f841a97e79efb48a8d8fd64b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 24 Dec 2014 16:40:30 +0100 Subject: machined: fix writability check for GPT images --- src/machine/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/machine/image.c') diff --git a/src/machine/image.c b/src/machine/image.c index c81c5f6281..2ffe9444e3 100644 --- a/src/machine/image.c +++ b/src/machine/image.c @@ -167,7 +167,7 @@ static int image_make(int dfd, const char *name, const char *path, Image **ret) r = image_new(IMAGE_GPT, name, path, - !!(st.st_mode & 0111), + !!(st.st_mode & 0222), timespec_load(&st.st_mtim), 0, ret); -- cgit v1.2.3-54-g00ecf