git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b580f
)
fixed a bug in trans2_qfilepathinfo() where we used the length of the
author
Andrew Tridgell
<tridge@samba.org>
Fri, 21 Aug 1998 05:58:57 +0000
(
05:58
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 21 Aug 1998 05:58:57 +0000
(
05:58
+0000)
basename of a file but the whole file name. silly error.
(This used to be commit
6e00de7a1d3d5f9fa9bcc40db119fcb8602165c9
)
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 278928277162f31a279b7c2966524e3a1ff63f4f..190910bd97f1be92d5ca8fa57db8be24e88330b3 100644
(file)
--- 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));
}