1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-26 01:37:12 +00:00
restic/internal/fs
Alexander Neumann c4fbf2c779 Return error when reading zero byte from stdin
This commit changes the internal file system implementation for reading
data from stdin, it now returns an error when no bytes could be read. I
think it's worth failing in this case, the user instructed restic to
read some data from stdin, and no data was read at all. Maybe it was in
a pipe and some earlier stage failed.

See #2135 for a short discussion.
2019-01-06 14:52:20 +01:00
..
const.go
const_unix.go
const_windows.go
deviceid_unix.go
deviceid_windows.go
doc.go
file.go
file_unix.go
file_windows.go
fs_helpers.go
fs_local.go
fs_reader.go
fs_reader_test.go
fs_track.go
helpers.go
interface.go
path_prefix.go
path_prefix_test.go
stat.go
stat_bsd.go
stat_test.go
stat_unix.go
stat_windows.go