summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-21 05:58:57 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-21 05:58:57 +0000
commit60cf7ad5cf53534b72189e1cfa3495e804cc0efc (patch)
tree6705b3875543549e398338e6d7d9ddc9801302ad /source3
parent81b580fd2248221c61e3d4dac03862fb1fd8fde5 (diff)
downloadsamba-60cf7ad5cf53534b72189e1cfa3495e804cc0efc.tar.gz
samba-60cf7ad5cf53534b72189e1cfa3495e804cc0efc.tar.bz2
samba-60cf7ad5cf53534b72189e1cfa3495e804cc0efc.zip
fixed a bug in trans2_qfilepathinfo() where we used the length of the
basename of a file but the whole file name. silly error. (This used to be commit 6e00de7a1d3d5f9fa9bcc40db119fcb8602165c9)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 2789282771..190910bd97 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1251,6 +1251,9 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
mode = dos_mode(conn,fname,&sbuf);
size = sbuf.st_size;
if (mode & aDIR) size = 0;
+
+ /* from now on we only want the part after the / */
+ fname = p;
params = *pparams = Realloc(*pparams,2); bzero(params,2);
data_size = 1024;
@@ -1399,6 +1402,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
SIVAL(pdata,20,l);
pstrcpy(pdata+24,fname);
break;
+
default:
return(ERROR(ERRDOS,ERRunknownlevel));
}