Files
moby/daemon/container
Dawei Wei a9fbffe39a daemon/container: reject non-dir copy path on Windows
CopyFromContainer (and stat) with a source path that ends with a
trailing separator asserts a directory, and must error when the path
resolves to a non-directory. The daemon relied on os.Lstat rejecting
the trailing separator, which the windowsfilter volume mount
(\\?\Volume{GUID}\) does, but the containerd snapshotter's plain
directory mount does not - so the trailing separator was silently
ignored and a file was returned instead of an error.

Enforce the invariant explicitly in StatPath, returning a consistent
"not a directory" error across storage drivers (matching the ENOTDIR
behaviour on Linux), add tests, and un-skip
TestCopyFromContainerPathIsNotDir.

Signed-off-by: Dawei Wei <wei.dawei.cn@gmail.com>
2026-07-27 16:46:46 -07:00
..
2025-12-15 18:56:34 +01:00
2025-12-15 18:56:34 +01:00