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 | 1e1a52bb5f0475327d435c06032d1e6234c28bcb (patch) | |
tree | af7572f8128b8a603620b0bbea7e4e889097f4f2 /source3/smbd/fileio.c | |
parent | 1fa178f6ce1aa64ec2b0324c9cd3cb877fc6d032 (diff) | |
download | samba-1e1a52bb5f0475327d435c06032d1e6234c28bcb.tar.gz samba-1e1a52bb5f0475327d435c06032d1e6234c28bcb.tar.bz2 samba-1e1a52bb5f0475327d435c06032d1e6234c28bcb.zip |
Changed arguments to fsync() function to break dependency on
connection_struct.
(This used to be commit ee6f826ccc0897a4538f6f9a560127c54a4c4038)
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r-- | source3/smbd/fileio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 7ab13f33f4..1e16627515 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -128,10 +128,9 @@ ssize_t write_file(files_struct *fsp,char *data,size_t n) sync a file ********************************************************************/ -void sys_sync_file(struct connection_struct *conn, files_struct *fsp) +void sys_sync_file(int fd) { #ifdef HAVE_FSYNC - if(lp_strict_sync(SNUM(conn))) - fsync(fsp->fd_ptr->fd); + fsync(fd); #endif } |