summaryrefslogtreecommitdiff
path: root/libbb/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/rtc.c')
-rw-r--r--libbb/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c
index 1fdeee8..222d977 100644
--- a/libbb/rtc.c
+++ b/libbb/rtc.c
@@ -14,7 +14,7 @@
int FAST_FUNC rtc_adjtime_is_utc(void)
{
int utc = 0;
- FILE *f = fopen(ADJTIME_PATH, "r");
+ FILE *f = fopen_for_read(ADJTIME_PATH);
if (f) {
RESERVE_CONFIG_BUFFER(buffer, 128);