Package: fakeroot
Version: 1.36

When using fakeroot with mkfs.btrfs v6.10.1 with a rootdir, the files are owned 
by the user and not root.

btrfs-progs switched to using `nftw` to walk the directory tree in 
c6464d3f99ed1dabceff1168eabb207492c37624, and the stat passed to the `fn` 
argument of `nftw` is not faked.

nftw: https://man7.org/linux/man-pages/man3/nftw.3p.html

Example:

> > mkdir -p populateRoot/dir1
> > touch populateRoot/file
> > faketime -f "1970-01-01 00:00:01" mkfs.btrfs -r ./populateRoot btrfs.img
> > mount -o loop ./btrfs.img /mnt; ls -lhan /mnt; umount /mnt; rm btrfs.img

> drwxr-xr-x 1 1000 100 16 Sep 17 09:21 .
> drwxr-xr-x 1    0   0 94 Jul 16 10:35 ..
> -rw-r--r-- 1 1000 100  0 Sep 17 09:21 file
> drwxr-xr-x 1 1000 100  8 Sep 17 09:21 dir1

Reply via email to