From 545ea62e11effab43a081d61af0c53d8c2c1202b Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 14 Jun 2020 14:37:18 +0200 Subject: [PATCH] devoptab: add missing S_IFREG flag in the fstat return value --- libraries/wutdevoptab/devoptab_fs_fstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/wutdevoptab/devoptab_fs_fstat.c b/libraries/wutdevoptab/devoptab_fs_fstat.c index 01d346f..13bcc6d 100644 --- a/libraries/wutdevoptab/devoptab_fs_fstat.c +++ b/libraries/wutdevoptab/devoptab_fs_fstat.c @@ -29,6 +29,6 @@ __wut_fs_fstat(struct _reent *r, st->st_uid = fsStat.owner; st->st_gid = fsStat.group; st->st_nlink = 1; - st->st_mode = fsStat.mode; + st->st_mode = fsStat.mode | S_IFREG; return 0; }