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; }