summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_synclists.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-10 13:09:54 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-10 13:09:54 +0000
commit4d65bc094941f1214efdf03c9d363715aa35a656 (patch)
tree9c418080528516dc54d4402c3b21bef44777bc61 /source3/nmbd/nmbd_synclists.c
parent79139fe8d882c39620b0d52ef081f639d1294917 (diff)
downloadsamba-4d65bc094941f1214efdf03c9d363715aa35a656.tar.gz
samba-4d65bc094941f1214efdf03c9d363715aa35a656.tar.bz2
samba-4d65bc094941f1214efdf03c9d363715aa35a656.zip
convert more code to use XFILE
(This used to be commit fd24265c06f6d2b636c1863941a33029dd9f3828)
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 51c9257f5a..e3ea67f135 100644
--- a/source3/nmbd/nmbd_synclists.c
+++ b/source3/nmbd/nmbd_synclists.c
@@ -45,7 +45,7 @@ struct sync_record {
/* a linked list of current sync connections */
static struct sync_record *syncs;
-static FILE *fp;
+static XFILE *fp;
/*******************************************************************
This is the NetServerEnum callback.
@@ -54,7 +54,7 @@ static FILE *fp;
static void callback(const char *sname, uint32 stype,
const char *comment, void *state)
{
- fprintf(fp,"\"%s\" %08X \"%s\"\n", sname, stype, comment);
+ x_fprintf(fp,"\"%s\" %08X \"%s\"\n", sname, stype, comment);
}
/*******************************************************************
@@ -167,7 +167,7 @@ done:
DEBUG(2,("Initiating browse sync for %s to %s(%s)\n",
work->work_group, name, inet_ntoa(ip)));
- fp = sys_fopen(s->fname,"w");
+ fp = x_fopen(s->fname,O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (!fp) {
END_PROFILE(sync_browse_lists);
_exit(1);
@@ -176,7 +176,7 @@ done:
sync_child(name, nm_type, work->work_group, ip, local, servers,
s->fname);
- fclose(fp);
+ x_fclose(fp);
END_PROFILE(sync_browse_lists);
_exit(0);
}