Skip to content

Compress-Archive fails on symlinks ending in . #61

Open
@rkeithhill

Description

@rkeithhill

This is the error I see on a symlink ending with a .:

ZipArchiveHelper : Could not find file '/home/bld/builds/jo/develop-Complete-RedHat/out/Linux-x64-Debug/lib/libgasl.so.'.
At /opt/microsoft/powershell/6.0.1/Modules/Microsoft.PowerShell.Archive/1.1.0.0/Microsoft.PowerShell.Archive.psm1:713 char:30
+ ... sArchived = ZipArchiveHelper $subDirFiles.ToArray() $destinationPath  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (/home/bld/b...lib/libgasl.so.:String) [Write-Error], FileNotFoundException
+ FullyQualifiedErrorId : CompressArchiveUnauthorizedAccessError,ZipArchiveHelpe

The link and target file are:

-rwxr-xr-x 1 bld domain [email protected] 5850260 Jul 20 11:06 libgasl.so
lrwxrwxrwx 1 bld domain [email protected]      12 Jul 20 11:06 libgasl.so. -> libgasl.so..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions