mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
aklog-no-dummy-write-on-aix5-20071209
LICENSE IPL10 don't do the dummy write on aix5. we are better off actually working
This commit is contained in:
parent
c0a04c21cf
commit
40307b6023
@ -928,11 +928,14 @@ static int auth_to_cell(krb5_context context, char *cell, char *realm)
|
||||
printf("Setting tokens. %s / %s @ %s \n",
|
||||
aclient.name, aclient.instance, aclient.cell );
|
||||
}
|
||||
#ifndef AFS_AIX51_ENV
|
||||
/* on AIX 4.1.4 with AFS 3.4a+ if a write is not done before
|
||||
* this routine, it will not add the token. It is not clear what
|
||||
* is going on here! So we will do the following operation
|
||||
* is going on here! So we will do the following operation.
|
||||
* On AIX 5, it causes the parent program to die, so we won't.
|
||||
*/
|
||||
write(2,"",0); /* dummy write */
|
||||
#endif
|
||||
#ifndef WINDOWS
|
||||
if ((status = ktc_SetToken(&aserver, &atoken, &aclient, afssetpag))) {
|
||||
fprintf(stderr,
|
||||
|
@ -533,11 +533,14 @@ static int auth_to_cell(krb5_context context, char *cell, char *realm)
|
||||
strcpy(aclient.instance, "");
|
||||
strncpy(aclient.cell, realm_of_user, MAXKTCREALMLEN - 1);
|
||||
|
||||
#ifndef AFS_AIX51_ENV
|
||||
/* on AIX 4.1.4 with AFS 3.4a+ if a write is not done before
|
||||
* this routine, it will not add the token. It is not clear what
|
||||
* is going on here! So we will do the following operation
|
||||
* is going on here! So we will do the following operation.
|
||||
* On AIX 5 this kills our parent. So we won't.
|
||||
*/
|
||||
write(2,"",0); /* dummy write */
|
||||
#endif
|
||||
status = ktc_SetToken(&aserver, &atoken, &aclient, afssetpag);
|
||||
|
||||
return(status);
|
||||
|
Loading…
Reference in New Issue
Block a user