Skip to content

Commit 84e4b83

Browse files
committed
Mount dwarfs filesystem with current uid and gid
1 parent 187a5b6 commit 84e4b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/dwarfs/file_stat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class file_stat {
156156
out->st_ino = ino_;
157157
out->st_nlink = nlink_;
158158
out->st_mode = mode_;
159-
out->st_uid = uid_;
160-
out->st_gid = gid_;
159+
out->st_uid = getuid();
160+
out->st_gid = getgid();
161161
out->st_rdev = rdev_;
162162
out->st_size = size_;
163163
if constexpr (with_block_info) {

0 commit comments

Comments
 (0)