View Single Post
Old 12-30-2011, 12:52 PM   #47
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Quote:
Originally Posted by MatzeMatz View Post
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.
yifanlu is offline   Reply With Quote