summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_synclists.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-10 12:46:42 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-10 12:46:42 +0000
commit79139fe8d882c39620b0d52ef081f639d1294917 (patch)
treedda0b12e26af7feb5872c093be1183b01c6a4065 /source3/nmbd/nmbd_synclists.c
parentb12a4dd9b655485420d5c67dd143d8f49ac28a40 (diff)
downloadsamba-79139fe8d882c39620b0d52ef081f639d1294917.tar.gz
samba-79139fe8d882c39620b0d52ef081f639d1294917.tar.bz2
samba-79139fe8d882c39620b0d52ef081f639d1294917.zip
convert more code to use XFILE
(This used to be commit fe6679dffba9a92bb35933ad52172c9be0e9ef90)
Diffstat (limited to 'source3/nmbd/nmbd_synclists.c')
-rw-r--r--source3/nmbd/nmbd_synclists.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c
index dea68d4c27..51c9257f5a 100644
--- a/source3/nmbd/nmbd_synclists.c
+++ b/source3/nmbd/nmbd_synclists.c
@@ -241,7 +241,7 @@ read the completed sync info
**********************************************************************/
static void complete_sync(struct sync_record *s)
{
- FILE *f;
+ XFILE *f;
fstring server, type_str;
unsigned type;
pstring comment;
@@ -249,11 +249,11 @@ static void complete_sync(struct sync_record *s)
char *ptr;
int count=0;
- f = sys_fopen(s->fname,"r");
+ f = x_fopen(s->fname,O_RDONLY, 0);
if (!f) return;
- while (!feof(f)) {
+ while (!x_feof(f)) {
if (!fgets_slash(line,sizeof(pstring),f)) continue;
@@ -272,7 +272,7 @@ static void complete_sync(struct sync_record *s)
count++;
}
- fclose(f);
+ x_fclose(f);
unlink(s->fname);