1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
--- a/misc/group-hack-337
+++ b/misc/group-hack-337
@@ -165,7 +165,7 @@
tp->t_authnam = TALLOC(LEN_OF_TMP_NAM, char, "auth");
(void)TMPNAMFUN(tp->t_authnam);
-! if ((tp->t_authfd = open(tp->t_authnam, O_RDONLY|O_CREAT|O_TRUNC, 0600))
+! if ((tp->t_authfd = open(tp->t_authnam, O_RDWR|O_CREAT|O_TRUNC, 0600))
! == -1) {
pvmlogperror("tm_connect() can't create d-auth file");
PVM_FREE(tp->t_authnam);
@@ -178,7 +178,7 @@
tp->t_authnam = TALLOC(LEN_OF_TMP_NAM, char, "auth");
(void)TMPNAMFUN(tp->t_authnam);
-! if ((tp->t_authfd = open(tp->t_authnam, O_RDONLY|O_CREAT|O_TRUNC, 0600)) == -1) {
+! if ((tp->t_authfd = open(tp->t_authnam, O_RDWR|O_CREAT|O_TRUNC, 0600)) == -1) {
pvmlogperror("tm_connect() can't create d-auth file");
PVM_FREE(tp->t_authnam);
tp->t_authnam = 0;
--- a/src/lpvm.c
+++ b/src/lpvm.c
@@ -3114,11 +3114,7 @@
#ifndef IMA_MPP
#ifndef NOPROT
(void)PVMTMPNAMFUN(authfn);
-#ifdef IMA_OS2
if ((authfd = open(authfn, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) == -1)
-#else
- if ((authfd = open(authfn, O_RDONLY|O_CREAT|O_EXCL|O_TRUNC, 0600)) == -1)
-#endif
{
pvmlogperror(authfn);
pvmlogerror("pvmbeatask() can't creat t-auth file\n");
--- a/src/tdpro.c
+++ b/src/tdpro.c
@@ -591,11 +591,7 @@
tp->t_authnam = TALLOC(PVMTMPNAMLEN, char, "auth");
(void)PVMTMPNAMFUN(tp->t_authnam);
-#ifndef IMA_OS2
- if ((tp->t_authfd = open(tp->t_authnam, O_RDONLY|O_CREAT|O_EXCL|O_TRUNC, 0600)) == -1)
-#else
if ((tp->t_authfd = open(tp->t_authnam, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) == -1)
-#endif
{
pvmlogperror("tm_connect() can't create d-auth file");
PVM_FREE(tp->t_authnam);
|