ons 2022-05-18 klockan 15:03 +0000 skrev Clint Adams:
> On Wed, May 18, 2022 at 04:43:08PM +0200, Mattias Ellert wrote:
> > However, on ia64 it fails:
> > 
> > ellert@yttrium:~$ fakeroot ./fakeroot-test.sh 
> > crw-rw-rw- 1 root root 1, 3 May 10 06:51 /dev/null
> > Original is device
> > crw-rw-rw- 1 root root 1, 3 May 10 06:51 newdev/null
> > Copy is not device
> > ellert@yttrium:~$ echo $?
> > 1
> 
> Could you run `stat` on newdev/null from within the script,
> and comment out the `rm` so that you can run `stat` on it without
> fakeroot afterward?

Replacing "rm -rf newdev" with "stat newdev/null":

ellert@yttrium:~$ fakeroot ./fakeroot-test.sh 
crw-rw-rw- 1 root root 1, 3 May 10 06:51 /dev/null
Original is device
crw-rw-rw- 1 root root 1, 3 May 10 06:51 newdev/null
Copy is not device
  File: newdev/null
  Size: 0               Blocks: 0          IO Block: 4096   character special 
file
Device: 802h/2050d      Inode: 6429907     Links: 1     Device type: 1,3
Access: (0666/crw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-05-18 15:18:53.847679259 +0000
Modify: 2022-05-10 06:51:55.000000000 +0000
Change: 2022-05-18 15:18:53.847679259 +0000
 Birth: 2022-05-18 15:18:53.847679259 +0000
ellert@yttrium:~$ stat newdev/null 
  File: newdev/null
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 802h/2050d      Inode: 6429907     Links: 1
Access: (0666/-rw-rw-rw-)  Uid: ( 3156/  ellert)   Gid: ( 3156/  ellert)
Access: 2022-05-18 15:18:53.847679259 +0000
Modify: 2022-05-10 06:51:55.000000000 +0000
Change: 2022-05-18 15:18:53.847679259 +0000
 Birth: 2022-05-18 15:18:53.847679259 +0000

        Mattias

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to