chiark / gitweb /
machined: fix writability check for GPT images
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Dec 2014 15:40:30 +0000 (16:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Dec 2014 15:53:05 +0000 (16:53 +0100)
src/machine/image.c

index c81c5f6..2ffe944 100644 (file)
@@ -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);