Ticket #46701: patch-void_unsetenv_PPC_Tiger.diff

File patch-void_unsetenv_PPC_Tiger.diff, 602 bytes (added by ballapete (Peter "Pete" Dyballa), 9 years ago)

Proposed patch for (PPC) Tiger/Mac OS X 10.4.11

  • clients/ksu/main.c

    old new  
    815815
    816816    *target_out = NULL;
    817817
    818     if (unsetenv(KRB5_ENV_CCNAME) != 0) {
    819         retval = errno;
    820         com_err(prog_name, retval, _("while clearing the value of %s"),
    821                 KRB5_ENV_CCNAME);
    822         return retval;
    823     }
     818    /* On PPC Tiger unsetenv is a void(), nothing to compare. */
     819    unsetenv(KRB5_ENV_CCNAME);
    824820
    825821    /* Make sure we don't have a cached value for a different uid. */
    826822    retval = krb5_cc_set_default_name(context, NULL);