diff options
author | Jeremy Allison <jra@samba.org> | 2005-08-23 21:29:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:01:12 -0500 |
commit | b67ba1e36b11aa140822f92b148438a1387d4d9d (patch) | |
tree | 8f9b5b7b36fb0050df72f4667a6da9d79e068023 /source3/client/client.c | |
parent | 7dd03e891e3aa06aa000e9bea8e0bad8ede34c8c (diff) | |
download | samba-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/client.c')
-rw-r--r-- | source3/client/client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index d22f1245fa..61c4c8e4be 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1379,7 +1379,7 @@ static int cmd_select(void) static int file_find(struct file_list **list, const char *directory, const char *expression, BOOL match) { - DIR *dir; + SMB_STRUCT_DIR *dir; struct file_list *entry; struct stat statbuf; int ret; @@ -1387,7 +1387,7 @@ static int file_find(struct file_list **list, const char *directory, BOOL isdir; const char *dname; - dir = opendir(directory); + dir = sys_opendir(directory); if (!dir) return -1; @@ -1416,14 +1416,14 @@ static int file_find(struct file_list **list, const char *directory, if (ret == -1) { SAFE_FREE(path); - closedir(dir); + sys_closedir(dir); return -1; } } entry = SMB_MALLOC_P(struct file_list); if (!entry) { d_printf("Out of memory in file_find\n"); - closedir(dir); + sys_closedir(dir); return -1; } entry->file_path = path; @@ -1434,7 +1434,7 @@ static int file_find(struct file_list **list, const char *directory, } } - closedir(dir); + sys_closedir(dir); return 0; } |