mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
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 commit is contained in:
parent
193cb53824
commit
6e00de7a1d
@ -1251,6 +1251,9 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
|
|||||||
mode = dos_mode(conn,fname,&sbuf);
|
mode = dos_mode(conn,fname,&sbuf);
|
||||||
size = sbuf.st_size;
|
size = sbuf.st_size;
|
||||||
if (mode & aDIR) size = 0;
|
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);
|
params = *pparams = Realloc(*pparams,2); bzero(params,2);
|
||||||
data_size = 1024;
|
data_size = 1024;
|
||||||
@ -1399,6 +1402,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
|
|||||||
SIVAL(pdata,20,l);
|
SIVAL(pdata,20,l);
|
||||||
pstrcpy(pdata+24,fname);
|
pstrcpy(pdata+24,fname);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return(ERROR(ERRDOS,ERRunknownlevel));
|
return(ERROR(ERRDOS,ERRunknownlevel));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user