上で動作し、これは単なる期待通りに動作します:busyboxのタールは、Ubuntuでのfakerootを無視しますが、それは私のMacマシンでOS X
#!/bin/sh -euf
touch test.sh
chown 888:888 test.sh
busybox tar -czvf out.tar.gz test.sh
が呼び出し:
$ fakeroot -- ./generateArchive.sh
$ busybox tar -tzvf out.tar.gz
-rw-r--r-- 888/888 0 2017-08-02 20:52:50 test.sh
しかし、私の仮想Ubuntuマシンで私が取得します:
$ fakeroot -- ./generateArchive.sh
$ busybox tar -tzvf out.tar.gz
-rwxrwxr-x marco/marco 215 2017-08-02 20:53:32 test.sh
なぜubuntuのbusyboxは偽のオーナーシップのために「落ちない」のですか?
busybox tar
の代わりにtar
を使用すると、ubuntuで動作します。
追加情報:
Mac (10.12.5):
fakeroot version 1.20.2
BusyBox v1.20.0.git (2017-05-17 10:01:40 CEST) multi-call binary.
Ubuntu (14.04.5 LTS):
fakeroot version 1.20
BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) multi-call binary.