Search Results

Search: Posts Made By: wempy
Forum: Programming 11-10-2008
10,237
Posted By wempy
chroot is not what you want, it changes the /...
chroot is not what you want, it changes the / path to be the named dir, so any subsequent calls will have that as their / path - not a good idea

chdir() is what you need
man 2 chdir will give you...
Forum: Programming 11-10-2008
10,237
Posted By wempy
tar always preserves paths, so the only way to do...
tar always preserves paths, so the only way to do what you want is to change to the directory where the files are, and add them from there using just thier name not path/name

system("tar -cf...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy