diff options
author | Tim Potter <tpot@samba.org> | 1999-04-20 03:29:05 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-04-20 03:29:05 +0000 |
commit | ee6f826ccc0897a4538f6f9a560127c54a4c4038 (patch) | |
tree | 5a17250df4eb3f6fee0cd8647884a36b17cbb35f /source/smbd/files.c | |
parent | 373ffe77599275b5cb17fed90ca0737785133b54 (diff) | |
download | samba-ee6f826ccc0897a4538f6f9a560127c54a4c4038.tar.gz samba-ee6f826ccc0897a4538f6f9a560127c54a4c4038.tar.xz samba-ee6f826ccc0897a4538f6f9a560127c54a4c4038.zip |
Changed arguments to fsync() function to break dependency on
connection_struct.
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r-- | source/smbd/files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c index 8aca336bf82..d366fa1e1ad 100644 --- a/source/smbd/files.c +++ b/source/smbd/files.c @@ -340,8 +340,9 @@ void file_sync_all(connection_struct *conn) for (fsp=Files;fsp;fsp=next) { next=fsp->next; - if (fsp->open && (conn == fsp->conn) && (fsp->fd_ptr != NULL)){ - conn->vfs_ops.sync(conn, fsp); + if (fsp->open && (conn == fsp->conn) && (fsp->fd_ptr != NULL) + && lp_strict_sync(SNUM(conn))){ + conn->vfs_ops.sync(fsp->fd_ptr->fd); } } } |