diff options
Diffstat (limited to 'src/sg_readcap.c')
-rw-r--r-- | src/sg_readcap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sg_readcap.c b/src/sg_readcap.c index ff811bec..573ca3ff 100644 --- a/src/sg_readcap.c +++ b/src/sg_readcap.c @@ -362,6 +362,12 @@ int main(int argc, char * argv[]) usage_for(&opts); return SG_LIB_SYNTAX_ERROR; } + if (opts.do_raw) { + if (sg_set_binary_mode(STDOUT_FILENO) < 0) { + perror("sg_set_binary_mode"); + return SG_LIB_FILE_ERROR; + } + } memset(resp_buff, 0, sizeof(resp_buff)); |