summaryrefslogtreecommitdiff
path: root/vendor/github.com/mattn/go-isatty/isatty_solaris.go
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-09-30 12:27:25 +0000
committerGitHub <noreply@github.com>2021-09-30 12:27:25 +0000
commit5090920cc0280004965e2f78c822813824c634aa (patch)
treeca78fa7c45a87e814023b1d42061d9dc0318449d /vendor/github.com/mattn/go-isatty/isatty_solaris.go
parentb187dfef20df5cd853b46fe7f56d7cfae4ea0bf5 (diff)
downloadpodman-5090920cc0280004965e2f78c822813824c634aa.tar.gz
podman-5090920cc0280004965e2f78c822813824c634aa.tar.bz2
podman-5090920cc0280004965e2f78c822813824c634aa.zip
Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.12 to 0.0.14. - [Release notes](https://github.com/mattn/go-isatty/releases) - [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.14) --- updated-dependencies: - dependency-name: github.com/mattn/go-isatty dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/mattn/go-isatty/isatty_solaris.go')
-rw-r--r--vendor/github.com/mattn/go-isatty/isatty_solaris.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/vendor/github.com/mattn/go-isatty/isatty_solaris.go b/vendor/github.com/mattn/go-isatty/isatty_solaris.go
index bdd5c79a0..0c3acf2dc 100644
--- a/vendor/github.com/mattn/go-isatty/isatty_solaris.go
+++ b/vendor/github.com/mattn/go-isatty/isatty_solaris.go
@@ -1,5 +1,5 @@
-// +build solaris
-// +build !appengine
+//go:build solaris && !appengine
+// +build solaris,!appengine
package isatty
@@ -8,10 +8,9 @@ import (
)
// IsTerminal returns true if the given file descriptor is a terminal.
-// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c
+// see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c
func IsTerminal(fd uintptr) bool {
- var termio unix.Termio
- err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
+ _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA)
return err == nil
}