35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
--- src/mt.c
|
|
+++ src/mt.c 2005/06/30 16:51:10
|
|
@@ -314,9 +314,9 @@
|
|
|| (operation == MTERASE)
|
|
#endif
|
|
)
|
|
- tapedesc = rmtopen (tapedev, O_WRONLY, 0, rsh_command_option);
|
|
+ tapedesc = rmtopen (tapedev, O_WRONLY|O_NONBLOCK, 0, rsh_command_option);
|
|
else
|
|
- tapedesc = rmtopen (tapedev, O_RDONLY, 0, rsh_command_option);
|
|
+ tapedesc = rmtopen (tapedev, O_RDONLY|O_NONBLOCK, 0, rsh_command_option);
|
|
if (tapedesc == -1)
|
|
error (1, errno, "%s", tapedev);
|
|
check_type (tapedev, tapedesc);
|
|
--- src/util.c
|
|
+++ src/util.c 2005/06/30 16:51:51
|
|
@@ -800,14 +800,14 @@
|
|
copy_in = process_copy_in;
|
|
|
|
if (copy_function == copy_in)
|
|
- fd = rmtopen (file, O_RDONLY | O_BINARY, 0666, rsh_command_option);
|
|
+ fd = rmtopen (file, O_RDONLY | O_BINARY | O_NONBLOCK, 0666, rsh_command_option);
|
|
else
|
|
{
|
|
if (!append_flag)
|
|
- fd = rmtopen (file, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666,
|
|
+ fd = rmtopen (file, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_NONBLOCK, 0666,
|
|
rsh_command_option);
|
|
else
|
|
- fd = rmtopen (file, O_RDWR | O_BINARY, 0666, rsh_command_option);
|
|
+ fd = rmtopen (file, O_RDWR | O_BINARY | O_NONBLOCK, 0666, rsh_command_option);
|
|
}
|
|
|
|
return fd;
|