Fix procfs inability to set st_mode properly

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-11-24 15:50:20 -05:00
parent f066dd2ad9
commit 75abb84f25
4 changed files with 32 additions and 5 deletions
+1
View File
@@ -14,6 +14,7 @@
static inline void print_content(const char *path, char *buffer, unsigned buflen)
{
pr_warning("Printing content of %s\n", path);
// Open the file.
int fd = open(path, O_RDONLY, 42);
if (fd >= 0) {