HomePhorge

(PUP-3191) Fix symlink checking
e76f2effc167Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3191) Fix symlink checking

Prior to this commit we were trying to use Pathname.realpath to find where a
symlink points to. This throws a file not found when the symlink doesn't point
at anything valid in the filesystem.
This commit fixes that problem by only using File.readlink and not attempting
to find the symlinked file relative to the module unpacking directory.

Details

Provenance
Brandon High <brandon.high@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8ffaa4a48325: Merge branch 'pr/3054' into stable
Branches
Unknown
Tags
Unknown

Event Timeline

Brandon High <brandon.high@puppetlabs.com> committed rPUe76f2effc167: (PUP-3191) Fix symlink checking (authored by Brandon High <brandon.high@puppetlabs.com>).Sep 9 2014, 11:58 PM