Fixed the extract() command which I had broken attempting to implement
it without cat. It now requires cat again (no way around it unless gunzip can accept arbitrary filename suffixes).
This commit is contained in:
parent
6704009043
commit
8dddc300cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=453
@ -256,12 +256,14 @@ extract()
|
||||
esac
|
||||
#XXX ugly hack to eliminate busy files, copy them to /tmp and use them
|
||||
#from there...
|
||||
cp -p /usr/bin/gunzip /usr/bin/tar /tmp
|
||||
cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
|
||||
|
||||
for i in "$@"*; do
|
||||
/tmp/gunzip <$i
|
||||
done | (cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} )
|
||||
rm -f /tmp/gunzip /tmp/tar
|
||||
for i in $*; do
|
||||
/tmp/cat "$i"* |
|
||||
/tmp/gunzip |
|
||||
(cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} )
|
||||
done
|
||||
rm -f /bin/cat /tmp/gunzip /tmp/tar
|
||||
sync
|
||||
}
|
||||
configure()
|
||||
|
Loading…
Reference in New Issue
Block a user