From 5e8ee41b3f392cf2084d2d762719a62a8b6ecaba Mon Sep 17 00:00:00 2001 From: Carsten Jacobi Date: Mon, 21 May 2001 21:24:04 +0000 Subject: [PATCH] linux-s390-kas-setpass-fix-20010515 fix for s390, per Carsten: (this behaviour occurs only on 31-bit S/390-Systems, the "s390x"-machines should change the AFS-password also without this patch as far as I can imagine) --- src/kauth/admin_tools.c | 4 ++++ src/kauth/authclient.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/kauth/admin_tools.c b/src/kauth/admin_tools.c index dc68cb09c..3571962e1 100644 --- a/src/kauth/admin_tools.c +++ b/src/kauth/admin_tools.c @@ -768,7 +768,11 @@ int SetPassword ( if (as->parms[3].items) sscanf (as->parms[3].items->data, "%d", &kvno); +#ifdef AFS_S390_LINUX20_ENV + code = ubik_Call (KAM_SetPassword, conn, 0, name, instance, kvno, 0, key); +#else code = ubik_Call (KAM_SetPassword, conn, 0, name, instance, kvno, key); +#endif if (code) com_err (whoami, code, "so can't set password for %s.%s", name, instance); return code; diff --git a/src/kauth/authclient.c b/src/kauth/authclient.c index c48868f2c..04d46669c 100644 --- a/src/kauth/authclient.c +++ b/src/kauth/authclient.c @@ -788,8 +788,13 @@ afs_int32 ka_ChangePassword ( afs_int32 code; LOCK_GLOBAL_MUTEX +#ifdef AFS_S390_LINUX20_ENV + code = ubik_Call_New (KAM_SetPassword, conn, 0, name, + instance, 0, 0, *newkey); +#else code = ubik_Call_New (KAM_SetPassword, conn, 0, name, instance, 0, *newkey); +#endif UNLOCK_GLOBAL_MUTEX return code; } -- 2.39.5