summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-04-09 09:20:47 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-04-09 09:20:47 +0000
commita3e026396cdbc43139d0f40a0382575c22b09812 (patch)
treebbfa4dab03762f521f9f58226114804d2825501b
parentfa4733a73995d7368f1726b8d3a925eb350322ce (diff)
Notes
-rw-r--r--usr.sbin/rmt/rmt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index 098e5025bfcf..79b4bbc8346e 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -104,7 +104,12 @@ top:
getstring(device);
getstring(mode);
DEBUG2("rmtd: O %s %s\n", device, mode);
- tape = open(device, atoi(mode));
+ /*
+ * XXX the rmt protocol does not provide a means to
+ * specify the permission bits; allow rw for everyone,
+ * as modified by the users umask
+ */
+ tape = open(device, atoi(mode), 0666);
if (tape < 0)
goto ioerror;
goto respond;