From 573e2f772c3b7d4ef4fcea6d6d6fa547056ebf9b Mon Sep 17 00:00:00 2001 From: Ezekiel Bethel Date: Sat, 23 May 2020 18:42:22 +0100 Subject: [PATCH] add lstat to fs_dev and romfs_dev --- nx/source/runtime/devices/fs_dev.c | 2 ++ nx/source/runtime/devices/romfs_dev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nx/source/runtime/devices/fs_dev.c b/nx/source/runtime/devices/fs_dev.c index 97ba9890..8029e579 100644 --- a/nx/source/runtime/devices/fs_dev.c +++ b/nx/source/runtime/devices/fs_dev.c @@ -90,6 +90,8 @@ fsdev_devoptab = .chmod_r = fsdev_chmod, .fchmod_r = fsdev_fchmod, .rmdir_r = fsdev_rmdir, + // symlinks aren't supported so alias lstat to stat + .lstat_r = fsdev_stat, }; typedef struct diff --git a/nx/source/runtime/devices/romfs_dev.c b/nx/source/runtime/devices/romfs_dev.c index 43dcff0f..c33bffa3 100644 --- a/nx/source/runtime/devices/romfs_dev.c +++ b/nx/source/runtime/devices/romfs_dev.c @@ -168,6 +168,8 @@ static const devoptab_t romFS_devoptab = .dirreset_r = romfs_dirreset, .dirnext_r = romfs_dirnext, .dirclose_r = romfs_dirclose, + // symlinks aren't supported so alias lstat to stat + .lstat_r = romfs_stat, }; static bool romfs_initialised = false;