Skip to content

Commit

Permalink
Fix some obvious mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crementif committed Apr 24, 2022
1 parent 16a2534 commit c4f6fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/iosuhax_devoptab.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static int fs_dev_fstat_r(struct _reent *r, void *fd, struct stat *st) {
// Convert fields to posix stat
st->st_dev = (dev_t) file->dev;
st->st_ino = stats.entryId;
st->st_mode = fs_dev_translate_mode(stats, true, true);
st->st_mode = fs_dev_translate_mode(stats, true, false);
st->st_nlink = 1;
st->st_uid = stats.owner;
st->st_gid = stats.group;
Expand Down Expand Up @@ -543,7 +543,7 @@ static int fs_dev_lstat_r(struct _reent *r, const char *path, struct stat *st) {
// Convert fields to posix stat
st->st_dev = (dev_t) dev;
st->st_ino = stats.entryId;
st->st_mode = fs_dev_translate_mode(stats, true, false);
st->st_mode = fs_dev_translate_mode(stats, false, (strlen(dev->mount_path) + 1 == strlen(real_path)));
st->st_nlink = 1;
st->st_uid = stats.owner;
st->st_gid = stats.group;
Expand Down

0 comments on commit c4f6fe8

Please sign in to comment.