Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9e6e32f537ddbdaa40d333f125f57ecd > files > 11

fakechroot-2.16-6.mga4.x86_64.rpm

#!/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