diff options
Diffstat (limited to 'source3/nmbd/nmbd_synclists.c')
-rw-r--r-- | source3/nmbd/nmbd_synclists.c | 8 |
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); } |