Fix kramfs not initializing the owner of new directories.

This commit is contained in:
Jonas 'Sortie' Termansen 2020-10-18 13:36:28 +02:00
parent 8337947058
commit be02a7996b
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ Dir::Dir(dev_t dev, ino_t ino, uid_t owner, gid_t group, mode_t mode)
if ( !ino )
ino = (ino_t) this;
dir_lock = KTHREAD_MUTEX_INITIALIZER;
this->stat_gid = owner;
this->stat_uid = owner;
this->stat_gid = group;
this->type = S_IFDIR;
this->stat_mode = (mode & S_SETABLE) | this->type;