[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fakeroot-hurd, fakeroot-tcp: small test to show failure
From: |
Svante Signell |
Subject: |
fakeroot-hurd, fakeroot-tcp: small test to show failure |
Date: |
Thu, 08 Oct 2015 17:17:16 +0200 |
Hi,
When looking for the EACCES problems with gpsd I found the following:
This small test reveals a bug in hurd (libdiskfs/dir-lookup.c,
trans/fakeroot.c, ...?):
touch test
chmod -w test
mkdir dir
ls -ld dir
drwxr-xr-x 2 srs srs 4096 Oct 8 17:06 dir
cp test dir/
ls -l dir
-r--r--r-- 1 srs srs 0 Oct 8 17:06 test
cp test dir
cp: unwritable ‘dir/test’ (mode 0444, r--r--r--); try anyway? y
cp: cannot create regular file ‘dir/test’: Permission denied
fakeroot-tcp cp test dir
cp: cannot create regular file ‘dir/test’: Permission denied
fakeroot-hurd cp test dir
cp: cannot create regular file ‘dir/test’: Permission denied
/bin/fakeauth: Error 1 for child 29919
/bin/settrans: Error 1 for child 29918
touch test
su -c 'cp -p test dir'
ls -l dir
-r--r--r-- 1 srs srs 0 Oct 8 17:11 test
- fakeroot-hurd, fakeroot-tcp: small test to show failure,
Svante Signell <=