libc vfs plugin: report non-zero link count in 'stat()'

Fixes #3739
This commit is contained in:
Christian Prochaska 2020-04-25 18:14:28 +02:00 committed by Norman Feske
parent 31d7b3eb97
commit 6505ce47ae
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ static void vfs_stat_to_libc_stat_struct(Vfs::Directory_service::Stat const &src
dst->st_dev = src.device;
long long mtime = src.modification_time.value;
dst->st_mtime = mtime != Vfs::Timestamp::INVALID ? mtime : 0;
dst->st_nlink = 1;
}