diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-17 22:10:42 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-19 18:03:14 +0200 |
commit | 608c321f232105966e509265c13ae061c03b9f77 (patch) | |
tree | e97ef9376ebbceec5c78f60e604815f8f26f0bcb /src/shared | |
parent | Merge pull request #32917 from YHNdnzj/ptyfwd-cleanup (diff) | |
download | systemd-608c321f232105966e509265c13ae061c03b9f77.tar.xz systemd-608c321f232105966e509265c13ae061c03b9f77.zip |
discover-image: update Image.read_only flag in image_read_only()
Otherwise, ReadOnly DBus property in org.freedesktop.machine1.Image or
org.freedesktop.portable1.Image will not be updated by MarkReadOnly DBus
method.
Diffstat (limited to '')
-rw-r--r-- | src/shared/discover-image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c index 09bad987ad..8467815efc 100644 --- a/src/shared/discover-image.c +++ b/src/shared/discover-image.c @@ -1287,6 +1287,7 @@ int image_read_only(Image *i, bool b) { return -EOPNOTSUPP; } + i->read_only = b; return 0; } |