X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Foftmpstream.cpp;h=71fadd4f80ed79f5ca044459b49c78724ea70fe3;hb=16d42e06a948baedc7b64502a7b2e05fd1f918c0;hp=bf4dda98f601b0e2bec01cc59f5d312b21f8514a;hpb=78a99ab305daf5492cae936679e60682f7bacf92;p=libi2ncommon diff --git a/src/oftmpstream.cpp b/src/oftmpstream.cpp index bf4dda9..71fadd4 100644 --- a/src/oftmpstream.cpp +++ b/src/oftmpstream.cpp @@ -121,8 +121,8 @@ void oftmpstream::close() if (!is_open) return; - fsync(fd); fchmod (fd, file_mode); // fix/change mkstemp permissions + fsync(fd); ::close (fd); if (rename (tmpname.c_str(), realname.c_str()) != 0)