/usr/share/doc/fakechroot/examples/restoremode.sh is in fakechroot 2.17.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
# This script restores uids and gids of files saved previously
# with savemode.sh script
tar zxf savemode.dat1 --numeric-owner
zcat savemode.dat2 | while read uid gid mode file; do
chown $uid:$gid $file
chmod $mode $file
done
|