mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 04:45:15 +00:00
Merge pull request #3150 from MichaelEischer/fix-windows-redir-output
termstatus: Fix canUpdateStatus detection for redirected output on windows
This commit is contained in:
commit
ba31c6fdaa
9
changelog/unreleased/issue-3111
Normal file
9
changelog/unreleased/issue-3111
Normal file
@ -0,0 +1,9 @@
|
||||
Bugfix: Correctly detect output redirection for `backup` command on Windows
|
||||
|
||||
On Windows, since restic 0.10.0 the `backup` command did not properly detect
|
||||
when the output was redirected to a file. This caused restic to output
|
||||
terminal control characters. This has been fixed by correcting the terminal
|
||||
detection.
|
||||
|
||||
https://github.com/restic/restic/issues/3111
|
||||
https://github.com/restic/restic/pull/3150
|
@ -88,8 +88,8 @@ func canUpdateStatus(fd uintptr) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// check if the output file type is a pipe (0x0003)
|
||||
if isPipe(fd) {
|
||||
// check that the output file type is a pipe (0x0003)
|
||||
if !isPipe(fd) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user