devoptab: add missing S_IFREG flag in the fstat return value

This commit is contained in:
Maschell 2020-06-14 14:37:18 +02:00 committed by James
parent ff25fe18d0
commit 545ea62e11

View File

@ -29,6 +29,6 @@ __wut_fs_fstat(struct _reent *r,
st->st_uid = fsStat.owner; st->st_uid = fsStat.owner;
st->st_gid = fsStat.group; st->st_gid = fsStat.group;
st->st_nlink = 1; st->st_nlink = 1;
st->st_mode = fsStat.mode; st->st_mode = fsStat.mode | S_IFREG;
return 0; return 0;
} }