Quote:
Originally Posted by MatzeMatz
Youre prepared file for me worked (as I already said here).
Really nice
But I also don't understand why it works.
When I look in /etc/upstart/userstore, the relevant lines for extracting the data.tar.gz file are:
Code:
cd ${MNTUS_MP}
tar xvzf data.tar.gz
And as long as I remember your have to give tar the "P" flag also for extraction to extract with absolute paths.
And the flag is not present on the above two lines (and therefore it should unpack the data.tar.gz relative to /mnt/us)???
Where is my error in reasoning?
|
That's exactly what I thought. I thought that tar only uses absolute paths on extraction not on creation. You would think that's some huge security flaw for all unix systems. Download a tar file. Overwrite settings or delete documents, etc.