Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[platform/kernel/linux-rpi.git] / tools / lib / bpf / libbpf_probes.c
index b7d4431..9c4db90 100644 (file)
@@ -38,7 +38,7 @@ static __u32 get_ubuntu_kernel_version(void)
        if (faccessat(AT_FDCWD, ubuntu_kver_file, R_OK, AT_EACCESS) != 0)
                return 0;
 
-       f = fopen(ubuntu_kver_file, "r");
+       f = fopen(ubuntu_kver_file, "re");
        if (!f)
                return 0;