libbb: [x]fopen_for_{read,write} introduced and used.
[platform/upstream/busybox.git] / miscutils / crond.c
index c7ee793..b3a06a3 100644 (file)
@@ -529,7 +529,7 @@ static void CheckUpdates(void)
        FILE *fi;
        char buf[256];
 
-       fi = fopen(CRONUPDATE, "r");
+       fi = fopen_for_read(CRONUPDATE);
        if (fi != NULL) {
                unlink(CRONUPDATE);
                while (fgets(buf, sizeof(buf), fi) != NULL) {