commit | b04af4fe041fe11a2ded55406270717a7451e66d | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue May 05 10:51:02 2015 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Tue May 05 10:51:02 2015 -0400 |
tree | 93f096189e3810a3fe2cc6cad30c0c3f3d456400 | |
parent | 76f132349182c5b59698e831223a7dbcb883ae3d [diff] |
copyin: fix error handling Save errno (in retval) before doing anything else, because the "anything else" (usually com_err()) can call library functions, which will reset errno. Fix the error messages to use the message catalog, and don't _ever_ print an error without providing context. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>