clearlinux / swupd-client

Software update client
Other
116 stars 61 forks source link

Allow paths that contain symlinks for cachedir #1584

Closed castulo closed 4 years ago

castulo commented 4 years ago

When the path provided by a user for the --statedir (or --cachedir) contains a symlink swupd will fail to extrar tar files since libarchive does not support extracting files through symlinks.

This commit fixes the issue allowing users to use symlinks in the --statediri/--cachedir path.

Closes #1581

Signed-off-by: Castulo Martinez castulo.martinez@intel.com

castulo commented 4 years ago

V2: returning immediately if realpath fails to get the path where a tar is going to be extracted to.

castulo commented 4 years ago

V3: