diff options
author | Damien Miller <djm@mindrot.org> | 2003-04-09 20:59:48 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-04-09 20:59:48 +1000 |
commit | 996acd2476d9d34b18bb4f99012ea0927458f418 (patch) | |
tree | 1420f273ae5395fc0adc9aa25dcd44fe821884a6 /auth-krb5.c | |
parent | 5f16a5ee4e35d36e72f8f72fb2334087cb2ea680 (diff) |
*** empty log message ***
Diffstat (limited to 'auth-krb5.c')
-rw-r--r-- | auth-krb5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-krb5.c b/auth-krb5.c index e3e2d9751..34b9d661a 100644 --- a/auth-krb5.c +++ b/auth-krb5.c | |||
@@ -189,12 +189,12 @@ auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt) | |||
189 | snprintf(ccname,sizeof(ccname),"FILE:/tmp/krb5cc_%d_XXXXXX",geteuid()); | 189 | snprintf(ccname,sizeof(ccname),"FILE:/tmp/krb5cc_%d_XXXXXX",geteuid()); |
190 | 190 | ||
191 | if ((tmpfd = mkstemp(ccname+strlen("FILE:")))==-1) { | 191 | if ((tmpfd = mkstemp(ccname+strlen("FILE:")))==-1) { |
192 | log("mkstemp(): %.100s", strerror(errno)); | 192 | logit("mkstemp(): %.100s", strerror(errno)); |
193 | problem = errno; | 193 | problem = errno; |
194 | goto fail; | 194 | goto fail; |
195 | } | 195 | } |
196 | if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { | 196 | if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { |
197 | log("fchmod(): %.100s", strerror(errno)); | 197 | logit("fchmod(): %.100s", strerror(errno)); |
198 | close(tmpfd); | 198 | close(tmpfd); |
199 | problem = errno; | 199 | problem = errno; |
200 | goto fail; | 200 | goto fail; |
@@ -326,13 +326,13 @@ auth_krb5_password(Authctxt *authctxt, const char *password) | |||
326 | snprintf(ccname,sizeof(ccname),"FILE:/tmp/krb5cc_%d_XXXXXX",geteuid()); | 326 | snprintf(ccname,sizeof(ccname),"FILE:/tmp/krb5cc_%d_XXXXXX",geteuid()); |
327 | 327 | ||
328 | if ((tmpfd = mkstemp(ccname+strlen("FILE:")))==-1) { | 328 | if ((tmpfd = mkstemp(ccname+strlen("FILE:")))==-1) { |
329 | log("mkstemp(): %.100s", strerror(errno)); | 329 | logit("mkstemp(): %.100s", strerror(errno)); |
330 | problem = errno; | 330 | problem = errno; |
331 | goto out; | 331 | goto out; |
332 | } | 332 | } |
333 | 333 | ||
334 | if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { | 334 | if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { |
335 | log("fchmod(): %.100s", strerror(errno)); | 335 | logit("fchmod(): %.100s", strerror(errno)); |
336 | close(tmpfd); | 336 | close(tmpfd); |
337 | problem = errno; | 337 | problem = errno; |
338 | goto out; | 338 | goto out; |