chiark / gitweb /
libudev: fix udev_queue_get_seqnum_sequence_is_finished() with empty queue file
[elogind.git] / libudev / libudev.c
index 0ae5a9115ac4297828e0dc7cd7aa78226510a446..cd418709f0336b32468bc8aafc2b079d6c5c7936 100644 (file)
@@ -146,7 +146,7 @@ struct udev *udev_new(void)
        }
        if (config_file == NULL)
                goto err;
-       f = fopen(config_file, "r");
+       f = fopen(config_file, "re");
        if (f != NULL) {
                char line[UTIL_LINE_SIZE];
                int line_nr = 0;