git.samba.org
/
ambi
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1901b5
)
s3: Simplify an if-statement
author
Volker Lendecke
<vl@samba.org>
Tue, 31 Jan 2012 16:47:07 +0000
(17:47 +0100)
committer
Volker Lendecke
<vlendec@samba.org>
Tue, 31 Jan 2012 22:30:09 +0000
(23:30 +0100)
is_ntfs_default_stream_smb_fname already contains all checks that
the variable "stream_name" gives us here.
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 3374fdb2723c1fc4c29ca811e3a5c978f41424d0..a94a02eb463da53b3a7e500411a01c7613ecd631 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-3832,7
+3832,7
@@
NTSTATUS create_file_default(connection_struct *conn,
}
}
- if (
stream_name &&
is_ntfs_default_stream_smb_fname(smb_fname)) {
+ if (is_ntfs_default_stream_smb_fname(smb_fname)) {
int ret;
smb_fname->stream_name = NULL;
/* We have to handle this error here. */