aboutsummaryrefslogtreecommitdiff
path: root/toys/other/fsfreeze.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/fsfreeze.c')
-rw-r--r--toys/other/fsfreeze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/fsfreeze.c b/toys/other/fsfreeze.c
index e169554e..dfe17fb9 100644
--- a/toys/other/fsfreeze.c
+++ b/toys/other/fsfreeze.c
@@ -23,7 +23,7 @@ config FSFREEZE
void fsfreeze_main(void)
{
- int fd = xopen(*toys.optargs, O_RDONLY);
+ int fd = xopenro(*toys.optargs);
long p = 1;
xioctl(fd, (toys.optflags & FLAG_f) ? FIFREEZE : FITHAW, &p);