spiegel_podman/pkg
Mario Loriedo fa0e8f0582 Safer use of filepath.EvalSymlinks() on Windows
The behavior of function `path/filepath.EvalSymlinks()` has
changed in Go v1.23:

- https://go-review.googlesource.com/c/go/+/565136
- https://go.dev/doc/go1.23#minor_library_changes
- https://tip.golang.org/doc/godebug

As a consequences, starting with Podman 5.3.0, when installing
on Windows (WSL) using scoop, Podman fails to start because it
fails to find helper binaries. Scoop copies Podman binaries in
a folder of type Junction and `EvalSymlinks` returns an error.
The problem is described in #24557.

To address this problem we are checking if a path is a `Symlink`
before calling `EvalSymlinks` and, if it's not (hardlinks, mount
points or canonical files), we are calling `path/filepath.Clean`
for consistency. In fact `path/filepath.EvalSymlinks`, after
evaluating a symlink target, calls `Clean` too.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-01-29 16:05:06 +00:00
..
annotations update golangci-lint to 1.60.1 2024-08-19 11:41:28 +02:00
api Merge pull request #25102 from Honny1/prune 2025-01-27 16:52:06 +00:00
auth update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
autoupdate Vendor c/common:8483ef6022b4 2024-08-30 16:13:54 +02:00
bindings Clean up after unexpectedly terminated build 2025-01-27 14:21:27 +01:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Enable pod restore with crun 2024-10-21 17:37:20 +01:00
copy Bump Go module to v5 2024-02-08 09:35:39 -05:00
criu chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain Merge pull request #25102 from Honny1/prune 2025-01-27 16:52:06 +00:00
emulation chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
env update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
errorhandling bump go to 1.22 2024-09-03 15:14:15 +02:00
farm bump go to 1.22 2024-09-03 15:14:15 +02:00
fileserver Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect Bump Go module to v5 2024-02-08 09:35:39 -05:00
k8s.io Add kube play support for image volume source 2024-09-10 12:37:06 +00:00
libartifact podman artifact 2025-01-21 12:47:30 -06:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine Safer use of filepath.EvalSymlinks() on Windows 2025-01-29 16:05:06 +00:00
namespaces namespaces: allow configuring keep-id userns size 2025-01-08 10:08:29 +01:00
parallel Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps Ignore missing containers when calling GetExternalContainerLists 2024-08-05 08:18:57 -04:00
rctl Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
rootless vendor: update containers/storage 2024-09-24 20:28:30 +02:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal refacto: unknown signal return signal number without prefix 2024-02-28 19:45:03 +01:00
specgen Merge pull request #24974 from rhatdan/quadlet 2025-01-20 14:34:13 +00:00
specgenutil do not set the CreateCommand for API users 2025-01-22 19:13:08 +01:00
specgenutilexternal Quadlet container mount - support non key=val options 2023-09-27 16:20:00 +03:00
systemd Merge pull request #25011 from AhmedMoalla/fix-wrongly-ported-cunescape_one 2025-01-15 11:44:56 +00:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
timetype Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00
trust pkg/trust: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
util Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00