mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
btrfs-progs: do not send stream into a terminal
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
e1a97972ac
commit
043437d8e1
@ -429,6 +429,11 @@ int cmd_send_start(int argc, char **argv)
|
||||
memset(&send, 0, sizeof(send));
|
||||
send.dump_fd = fileno(stdout);
|
||||
|
||||
if (isatty(send.dump_fd)) {
|
||||
fprintf(stderr, "ERROR: not dumping send stream into a terminal, redirect it into a file\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
while ((c = getopt(argc, argv, "vf:i:p:")) != -1) {
|
||||
switch (c) {
|
||||
case 'v':
|
||||
|
Loading…
Reference in New Issue
Block a user