diff options
author | Jeremy Allison <jra@samba.org> | 2008-05-21 13:06:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-05-21 13:06:46 -0700 |
commit | 5c83e5f9d5f672817e64c7c8c0865d3a3e2eaf14 (patch) | |
tree | 32dabd8a083e9b2a9d0db001eb597d0e0fe49b63 | |
parent | 9c5c3eadf5aaf9821c0ebe1d2bb533eff22aab63 (diff) | |
download | samba-3.0.29.tar.gz |
Make 3.0.x in sync with 3.2 here.samba-3.0.29
Jeremy.
-rw-r--r-- | source/lib/xfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/xfile.c b/source/lib/xfile.c index 9f8348333d5..1ecaaa00406 100644 --- a/source/lib/xfile.c +++ b/source/lib/xfile.c @@ -256,10 +256,10 @@ int x_fflush(XFILE *f) { int ret; - if (f->bufused == 0 || !f->buf) return 0; - if (f->flags & X_FLAG_ERROR) return -1; + if (f->bufused == 0 || !f->buf) return 0; + if ((f->open_flags & O_ACCMODE) != O_WRONLY) { errno = EINVAL; return -1; |