summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 0aaf5fd1c7..c36dbdd522 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -161,8 +161,8 @@ static BOOL open_file(files_struct *fsp,connection_struct *conn,
check_for_pipe(fname);
return False;
}
- }
- fsp->fd == -1; /* What we used to call a stat open. */
+ } else
+ fsp->fd = -1; /* What we used to call a stat open. */
if (!VALID_STAT(*psbuf)) {
int ret;