diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-04-09 09:20:47 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-04-09 09:20:47 +0000 |
| commit | a3e026396cdbc43139d0f40a0382575c22b09812 (patch) | |
| tree | bbfa4dab03762f521f9f58226114804d2825501b | |
| parent | fa4733a73995d7368f1726b8d3a925eb350322ce (diff) | |
Notes
| -rw-r--r-- | usr.sbin/rmt/rmt.c | 7 |
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; |
