aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/uuencode.c')
-rw-r--r--toys/posix/uuencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/uuencode.c b/toys/posix/uuencode.c
index 34ca7013..06709d5e 100644
--- a/toys/posix/uuencode.c
+++ b/toys/posix/uuencode.c
@@ -26,7 +26,7 @@ void uuencode_main(void)
int i, m = toys.optflags & FLAG_m, fd = 0;
- if (toys.optc > 1) fd = xopen(toys.optargs[0], O_RDONLY);
+ if (toys.optc > 1) fd = xopenro(toys.optargs[0]);
base64_init(toybuf);