Skip to content

Commit 943a0f7

Browse files
committed
Pass less filehandle metadata in the case of a fifo
1 parent 8a68422 commit 943a0f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/parse.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,12 @@ func appendFile(fpath string, argDef *cmds.Argument, recursive, hidden bool) (fi
518518
if err != nil {
519519
return nil, err
520520
}
521-
return files.NewReaderPathFile(fpath, file, stat)
521+
522+
return files.NewReaderPathFile(
523+
"", // the path string should only refer to files that can actually be read. The filestore/urlstore features will use it
524+
file,
525+
nil, // normally the passed through stat will be used to determine the size of the file. It'll give us very incorrect information in this case
526+
)
522527
}
523528

524529
return files.NewSerialFile(fpath, hidden, stat)

0 commit comments

Comments
 (0)