diff --git a/src/barebox-state.c b/src/barebox-state.c index ea4c2e8..6caa004 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -847,7 +847,7 @@ { int fd, ret; - fd = open(path, O_RDWR); + fd = open(path, O_RDONLY); if (fd < 0) return fd;