From: Andrew Deason Date: Thu, 9 Jan 2020 18:38:45 +0000 (-0600) Subject: aklog: Make dummy write AIX-specific X-Git-Tag: openafs-devel-1_9_0~160 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=6ee2d6de7d87c93c849f3afbe4326906e4c10852;hp=dcf44ab5fc5c1f5e2e759ea4b6156f7e1faa4b7a aklog: Make dummy write AIX-specific This weird write() call exists to work around some old AIX-specific bug. The ifdef looks like it is intended to restrict this to pre-5 AIX, but it also turns this on for all non-AIX platforms. Make this area AIX-specific, to avoid this weird write on other platforms that have nothing to do with the relevant workaround. Change-Id: I092bcadb4ecc6277ae01e44e6a957e6bacc0cf2d Reviewed-on: https://gerrit.openafs.org/14022 Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index c16a600..3dba5f4 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -1106,7 +1106,7 @@ auth_to_cell(krb5_context context, const char *config, afs_dprintf("Setting tokens for cell %s\n", cellconf.name); } -#ifndef AFS_AIX51_ENV +#if defined(AFS_AIX_ENV) && !defined(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.