summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-03-08 15:27:14 +0100
committerSimo Sorce <simo@redhat.com>2013-03-13 14:41:38 -0400
commit7800c9da75ad0dc3b4a530b15adce86d6c4f26e5 (patch)
treedcfc6899b784dba3b24df2a5c3de39d00f4da007 /src/providers/krb5
parent22d381367c27910fe82f476a76b9f4ede555e35a (diff)
downloadsssd-7800c9da75ad0dc3b4a530b15adce86d6c4f26e5.tar.gz
sssd-7800c9da75ad0dc3b4a530b15adce86d6c4f26e5.tar.xz
sssd-7800c9da75ad0dc3b4a530b15adce86d6c4f26e5.zip
More generalized function open_debug_file_ex()
Function open_debug_file_ex() set flag FD_CLOEXEC to opened file according to the value of third parameter. Removed duplicity of unsetting FD_CLOEXEC after calling function open_debug_file_ex()
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_init_shared.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/providers/krb5/krb5_init_shared.c b/src/providers/krb5/krb5_init_shared.c
index 312c695ea..0dac5fa69 100644
--- a/src/providers/krb5/krb5_init_shared.c
+++ b/src/providers/krb5/krb5_init_shared.c
@@ -30,7 +30,6 @@ errno_t krb5_child_init(struct krb5_ctx *krb5_auth_ctx,
{
errno_t ret;
FILE *debug_filep;
- unsigned v;
time_t renew_intv;
if (dp_opt_get_bool(krb5_auth_ctx->opts, KRB5_STORE_PASSWORD_IF_OFFLINE)) {
@@ -71,7 +70,7 @@ errno_t krb5_child_init(struct krb5_ctx *krb5_auth_ctx,
}
if (debug_to_file != 0) {
- ret = open_debug_file_ex(KRB5_CHILD_LOG_FILE, &debug_filep);
+ ret = open_debug_file_ex(KRB5_CHILD_LOG_FILE, &debug_filep, false);
if (ret != EOK) {
DEBUG(0, ("Error setting up logging (%d) [%s]\n",
ret, strerror(ret)));
@@ -84,9 +83,6 @@ errno_t krb5_child_init(struct krb5_ctx *krb5_auth_ctx,
ret = errno;
goto done;
}
-
- v = fcntl(krb5_auth_ctx->child_debug_fd, F_GETFD, 0);
- fcntl(krb5_auth_ctx->child_debug_fd, F_SETFD, v & ~FD_CLOEXEC);
}
done: