From 2384c1cee72c1d64fb2a7455117ae5a7f9b84eb7 Mon Sep 17 00:00:00 2001 From: David Roman Date: Thu, 21 Jun 2018 23:12:38 +0200 Subject: [PATCH] Ignore ExcludeOtherFs if Stdin is true Closes: #1807 --- cmd/restic/cmd_backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_backup.go b/cmd/restic/cmd_backup.go index dc84ed280..1a0e5019f 100644 --- a/cmd/restic/cmd_backup.go +++ b/cmd/restic/cmd_backup.go @@ -190,7 +190,7 @@ func (opts BackupOptions) Check(gopts GlobalOptions, args []string) error { // from being saved in a snapshot func collectRejectFuncs(opts BackupOptions, repo *repository.Repository, targets []string) (fs []RejectFunc, err error) { // allowed devices - if opts.ExcludeOtherFS { + if opts.ExcludeOtherFS && !opts.Stdin { f, err := rejectByDevice(targets) if err != nil { return nil, err