summaryrefslogtreecommitdiff
path: root/source3/client/smbspool.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-08-23 21:29:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:01:12 -0500
commitb67ba1e36b11aa140822f92b148438a1387d4d9d (patch)
tree8f9b5b7b36fb0050df72f4667a6da9d79e068023 /source3/client/smbspool.c
parent7dd03e891e3aa06aa000e9bea8e0bad8ede34c8c (diff)
downloadsamba-b67ba1e36b11aa140822f92b148438a1387d4d9d.tar.gz
samba-b67ba1e36b11aa140822f92b148438a1387d4d9d.tar.bz2
samba-b67ba1e36b11aa140822f92b148438a1387d4d9d.zip
r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.
Jeremy. (This used to be commit b242f278601e1a23c9116009482e802326d418f7)
Diffstat (limited to 'source3/client/smbspool.c')
-rw-r--r--source3/client/smbspool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index 16b071af19..b1c17a26fc 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -288,7 +288,7 @@ list_devices(void)
static
char * get_ticket_cache( uid_t uid )
{
- DIR *tcdir; /* directory where ticket caches are stored */
+ SMB_STRUCT_DIR *tcdir; /* directory where ticket caches are stored */
SMB_STRUCT_DIRENT *dirent; /* directory entry */
char *filename = NULL; /* holds file names on the tmp directory */
SMB_STRUCT_STAT buf;
@@ -298,7 +298,7 @@ char * get_ticket_cache( uid_t uid )
time_t t = 0;
snprintf(user_cache_prefix, CC_MAX_FILE_LEN, "%s%d", CC_PREFIX, uid );
- tcdir = opendir( TICKET_CC_DIR );
+ tcdir = sys_opendir( TICKET_CC_DIR );
if ( tcdir == NULL )
return NULL;
@@ -331,6 +331,8 @@ char * get_ticket_cache( uid_t uid )
}
}
+ sys_closedir(tcdir);
+
if ( ticket_file == NULL )
{
/* no ticket cache found */