* update-pciids.sh: Try to preserve permissions of the old file
if chmod supports --reference. Should close Debian Bug #223740.
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-24
2003-12-27 Martin Mares <mj@ucw.cz>
+ * update-pciids.sh: Try to preserve permissions of the old file
+ if chmod supports --reference. Should close Debian Bug #223740.
+
* lib/proc.c (proc_setup): Increased path name length limit to 1024.
Thanks for Redhat and Mandrake for inspiration.
if [ -f $DEST ] ; then
mv $DEST $DEST.old
+ # --reference is supported only by chmod from GNU file, so let's ignore any errors
+ chmod -f --reference=$DEST.old $DEST.neww 2>/dev/null || true
fi
mv $DEST.neww $DEST
rm $DEST.new