]> git.ipfire.org Git - thirdparty/krb5.git/commit
Include file ccache name in error messages
authorNicolas Williams <nico@cryptonector.com>
Thu, 30 Oct 2014 00:42:49 +0000 (19:42 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 15 Dec 2014 22:33:46 +0000 (17:33 -0500)
commit98b55e86d7ec8b0a3b9b9f9b415ffdf78f4fd2e8
treebada49a0b1714094100b7390c89e1b233302bf50
parent0008014a748310e38b3e4d69e3227af935e86cf7
Include file ccache name in error messages

When a FILE ccache method returns an error, append the filename to the
standard message for the code.  Remove code to set extended messages
in helper functions as they would just be overwritten.

Also change the interpretation of errno values.  Treat ENAMETOOLONG as
KRB5_FCC_NOFILE instead of KRB5_FCC_INTERNAL, since it has an external
cause and a name that long can't be opened by normal means.  Treat
EROFS as KRB5_FCC_PERM.  Treat ENOTDIR and ELOOP as KRB5_FCC_NOFILE
instead of KRB5_FCC_PERM as both errors imply that the full pathname
doesn't exist.  Treat EBUSY and ETXTBSY as KRB5_CC_IO instead of
KRB5_FCC_PERM as they indicate a conflict rather than a permission
issue.

[ghudson@mit.edu: renamed set_error to set_errmsg_filename; removed
now-inoperative code to set extended messages in helper functions;
trimmed changes to interpret_errno; clarified and shortened commit
message]

ticket: 8052 (new)
src/lib/krb5/ccache/cc_file.c
src/tests/dejagnu/config/default.exp
src/tests/gssapi/t_client_keytab.py
src/tests/t_ccache.py
src/tests/t_errmsg.py