diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-09-30 12:35:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-09-30 12:35:22 +0200 |
commit | 69fd3a430787abb37497b27bd2b43bb9223eeca6 (patch) | |
tree | fa38765428b86243e431432f687e9cd12c714436 | |
parent | e6300b3e998d10f0088ab5c4b6f485e08db7828e (diff) | |
download | pam_wrapper-69fd3a430787abb37497b27bd2b43bb9223eeca6.tar.gz pam_wrapper-69fd3a430787abb37497b27bd2b43bb9223eeca6.tar.xz pam_wrapper-69fd3a430787abb37497b27bd2b43bb9223eeca6.zip |
pwrap: Improve error log message
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/pam_wrapper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c index 6a958d5..7ea9185 100644 --- a/src/pam_wrapper.c +++ b/src/pam_wrapper.c @@ -750,7 +750,10 @@ static void pwrap_init(void) PWRAP_LOG(PWRAP_LOG_DEBUG, "Copy %s to %s", pam_path, pwrap.pam_library); rc = p_copy(pam_path, pwrap.pam_library, pwrap.config_dir, 0644); if (rc != 0) { - PWRAP_LOG(PWRAP_LOG_ERROR, "Failed to copy %s", LIBPAM_NAME); + PWRAP_LOG(PWRAP_LOG_ERROR, + "Failed to copy %s - error: %s", + LIBPAM_NAME, + strerror(errno)); exit(1); } |