]> git.pld-linux.org Git - packages/krb5.git/blob - krb5-enospc.patch
- up to 1.16
[packages/krb5.git] / krb5-enospc.patch
1 If the error message is going to be ambiguous, try to give the user some clue
2 by returning the last error reported by the OS.
3
4 --- krb5-1.16/src/clients/kinit/kinit.c.orig    2018-04-02 19:53:38.218343400 +0200
5 +++ krb5-1.16/src/clients/kinit/kinit.c 2018-04-02 19:59:46.085005866 +0200
6 @@ -820,9 +820,15 @@
7          ret = krb5_cc_initialize(k5->ctx, k5->out_cc, opts->canonicalize ?
8                                   my_creds.client : k5->me);
9          if (ret) {
10 +         if ((ret == KRB5_CC_IO) && (errno != 0)) {
11 +           com_err(progname, ret, "when initializing cache %s: %s",
12 +                   opts->k5_out_cache_name ? opts->k5_out_cache_name : "",
13 +                   strerror(errno));
14 +         } else {
15              com_err(progname, ret, _("when initializing cache %s"),
16                      opts->k5_out_cache_name ? opts->k5_out_cache_name : "");
17              goto cleanup;
18 +         }
19          }
20          if (opts->verbose)
21              fprintf(stderr, _("Initialized cache\n"));
This page took 0.362413 seconds and 3 git commands to generate.