diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-19 02:25:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-05-19 02:25:48 +0000 |
commit | 913591bea2b40fd4028efc7606c90a8c3a948898 (patch) | |
tree | 52d57a60a3eea6d3138129314c9ed629ffd8d6ad /source/smbd/trans2.c | |
parent | 88c96c12f0e9f387311f6e0b428ae99ba4fb99bc (diff) | |
download | samba-913591bea2b40fd4028efc7606c90a8c3a948898.tar.gz samba-913591bea2b40fd4028efc7606c90a8c3a948898.tar.xz samba-913591bea2b40fd4028efc7606c90a8c3a948898.zip |
r779: Fix specific case of open that doesn't cause oplock break, or share mode check.
Test case provided by Volker will be added later. There may be other tests
needed.
Jeremy.
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r-- | source/smbd/trans2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 23272752c6b..738d12e020f 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -2302,7 +2302,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn, return set_bad_path_error(errno, bad_path, outbuf, ERRDOS,ERRbadpath); } - delete_pending = fsp->directory_delete_on_close; + delete_pending = fsp->is_directory ? fsp->directory_delete_on_close : 0; } else { /* * Original code - this is an open file. |