summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-21 11:35:17 -0700
committerTim Prouty <tprouty@samba.org>2009-07-21 12:04:59 -0700
commit23c703a01eddfa9103352e0ad43bc9fe39ea0c27 (patch)
tree0313bc38c66f8c61d35e008d684a240bb116d5e6 /source3/smbd/close.c
parent00e267008defe18475115a4300addf3cbcabff5a (diff)
downloadsamba-23c703a01eddfa9103352e0ad43bc9fe39ea0c27.tar.gz
samba-23c703a01eddfa9103352e0ad43bc9fe39ea0c27.tar.bz2
samba-23c703a01eddfa9103352e0ad43bc9fe39ea0c27.zip
s3: Remove unnecessary callers of get_full_smb_filename
This often times means explicitly denying certain operations on a stream as they are not supported or don't make sense at a particular level. At some point in the future these can be enabled, but for now it's better to remove ambiguity
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index f878aaa056..788b0a7cec 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -47,10 +47,7 @@ static NTSTATUS check_magic(struct files_struct *fsp)
ctx = talloc_stackframe();
- status = get_full_smb_filename(ctx, fsp->fsp_name, &fname);
- if (!NT_STATUS_IS_OK(status)) {
- goto out;
- }
+ fname = fsp->fsp_name->base_name;
if (!(p = strrchr_m(fname,'/'))) {
p = fname;