git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db743ab
)
s3:adouble: allow ad_fget/ad_get_internal to be used with a backend fsp
author
Stefan Metzmacher
<metze@samba.org>
Wed, 23 Dec 2020 10:58:08 +0000
(11:58 +0100)
committer
Ralph Boehme
<slow@samba.org>
Thu, 21 Jan 2021 13:35:33 +0000
(13:35 +0000)
Up to now we only passed in stream fsp, but that will change shortly.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/adouble.c
patch
|
blob
|
history
diff --git
a/source3/lib/adouble.c
b/source3/lib/adouble.c
index ec29ad8a9b69ad52e2cddc7aeb8ee371021b46eb..abd901b2172a35aee8cb32e47499973eabf3696c 100644
(file)
--- a/
source3/lib/adouble.c
+++ b/
source3/lib/adouble.c
@@
-2440,7
+2440,11
@@
static struct adouble *ad_get_internal(TALLOC_CTX *ctx,
int mode;
if (fsp != NULL) {
- smb_fname = fsp->base_fsp->fsp_name;
+ if (fsp->base_fsp != NULL) {
+ smb_fname = fsp->base_fsp->fsp_name;
+ } else {
+ smb_fname = fsp->fsp_name;
+ }
}
DEBUG(10, ("ad_get(%s) called for %s\n",