Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > dd315eea8af36d464af7b66eeea8976a > files > 5

fakechroot-2.9-24.fc12.x86_64.rpm

#!/bin/sh
if [ "$(find ~ -maxdepth 0 -printf '%U\n')" != 0 ]; then
    echo "Use in fakechroot environment"
    exit 1
fi
tar zxf savemode.dat1 --numeric-owner
zcat savemode.dat2 | while read uid gid mode file; do
    chown $uid:$gid $file
    chmod $mode $file
done