summaryrefslogtreecommitdiff
path: root/vendor/github.com/pkg/sftp/syscall_fixed.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-10 08:57:58 +0000
committerGitHub <noreply@github.com>2022-08-10 08:57:58 +0000
commit84502fc1447867aba66ea6725e22bb57cddce42c (patch)
tree8fe47161286ee1bc7f677852799648cf3f7a5116 /vendor/github.com/pkg/sftp/syscall_fixed.go
parentc1eb9f65ac67d72f557e3770975b227657d31d4b (diff)
parent280f5d8cb01d115618d5ef131c718496a3b4900e (diff)
downloadpodman-84502fc1447867aba66ea6725e22bb57cddce42c.tar.gz
podman-84502fc1447867aba66ea6725e22bb57cddce42c.tar.bz2
podman-84502fc1447867aba66ea6725e22bb57cddce42c.zip
Merge pull request #15094 from cdoern/ssh
podman ssh work, using new c/common interface
Diffstat (limited to 'vendor/github.com/pkg/sftp/syscall_fixed.go')
-rw-r--r--vendor/github.com/pkg/sftp/syscall_fixed.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/pkg/sftp/syscall_fixed.go b/vendor/github.com/pkg/sftp/syscall_fixed.go
new file mode 100644
index 000000000..d40457776
--- /dev/null
+++ b/vendor/github.com/pkg/sftp/syscall_fixed.go
@@ -0,0 +1,9 @@
+// +build plan9 windows js,wasm
+
+// Go defines S_IFMT on windows, plan9 and js/wasm as 0x1f000 instead of
+// 0xf000. None of the the other S_IFxyz values include the "1" (in 0x1f000)
+// which prevents them from matching the bitmask.
+
+package sftp
+
+const S_IFMT = 0xf000