diff options
author | Branden Robinson <branden@debian.org> | 2009-07-17 22:42:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-07-17 22:42:40 -0700 |
commit | 8d15af786d96bb70aceca116a588c2a4b7c45d63 (patch) | |
tree | d01444d9291020491631f39256e70daf7b890115 | |
parent | d6faa3c02a6f61c8d01accd0fcead28c39673e32 (diff) |
Use xdm's _SysErrorMsg() function instead of merely printing errno
-rw-r--r-- | greeter/verify.c | 2 | ||||
-rw-r--r-- | session.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/greeter/verify.c b/greeter/verify.c index b4fb850..73493ca 100644 --- a/greeter/verify.c +++ b/greeter/verify.c @@ -444,7 +444,7 @@ Verify (struct display *d, struct greet_info *greet, struct verify_info *verify) errno = 0; sp = getspnam(greet->name); if (sp == NULL) { - Debug ("getspnam() failed, errno=%d. Are you root?\n", errno); + Debug ("getspnam() failed: %s\n", _SysErrorMsg (errno)); } else { user_pass = sp->sp_pwdp; } @@ -677,7 +677,8 @@ StartClient ( * audit classes, user limits, and umask. */ if (setpcred(name, NULL) == -1) { - LogError ("setpcred for \"%s\" failed, errno=%d\n", name, errno); + LogError ("setpcred for \"%s\" failed: %s\n", name, + _SysErrorMsg (errno)); return (0); } #endif /* AIXV3 */ @@ -801,8 +802,8 @@ StartClient ( if (passwd != NULL) bzero(passwd, strlen(passwd)); Debug ("StartSession, fork failed\n"); - LogError ("can't start session on \"%s\", fork failed, errno=%d\n", - d->name, errno); + LogError ("can't start session on \"%s\", fork failed: %s\n", + d->name, _SysErrorMsg (errno)); return 0; default: if (passwd != NULL) |