]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: 634543
authorSteve Langasek <vorlon@debian.org>
Sun, 13 Jul 2003 19:47:11 +0000 (19:47 +0000)
committerSteve Langasek <vorlon@debian.org>
Sun, 13 Jul 2003 19:47:11 +0000 (19:47 +0000)
Purpose of commit: cleanup

Commit summary:
---------------
Fix a log message when directory creation has failed

modules/pam_mkhomedir/pam_mkhomedir.c

index 9a4640dd0b903aacb98fcee6840dd592a5ec7639..c6d4930142bc4de7e2beb31453d5feaf5082d9e8 100644 (file)
@@ -187,7 +187,7 @@ static int create_homedir(pam_handle_t * pamh, int ctrl,
    /* Create the new directory */
    if (mkdir(dest,0700) != 0)
    {
-      _log_err(LOG_DEBUG, "unable to create directory %s",source);
+      _log_err(LOG_DEBUG, "unable to create directory %s",dest);
       return PAM_PERM_DENIED;
    }   
    if (chmod(dest,0777 & (~UMask)) != 0 ||