The Samba-Bugzilla – Attachment 2929 Details for
Bug 4984
unix_convert failure for NT4 clients
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
upstream r25309
4984.diff (text/plain), 1.73 KB, created by
Volker Lendecke
on 2007-09-26 08:42:54 UTC
(
hide
)
Description:
upstream r25309
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2007-09-26 08:42:54 UTC
Size:
1.73 KB
patch
obsolete
>Index: source/smbd/nttrans.c >=================================================================== >--- source/smbd/nttrans.c (Revision 25308) >+++ source/smbd/nttrans.c (Revision 25309) >@@ -543,7 +543,6 @@ > */ > pstring rel_fname; > files_struct *dir_fsp = file_fsp(inbuf,smb_ntcreate_RootDirectoryFid); >- size_t dir_name_len; > > if(!dir_fsp) { > END_PROFILE(SMBntcreateX); >@@ -583,15 +582,18 @@ > */ > > pstrcpy( fname, dir_fsp->fsp_name ); >- dir_name_len = strlen(fname); > >- /* >- * Ensure it ends in a '\'. >- */ >+ if (ISDOT(fname)) { >+ fname[0] = '\0'; >+ } else { >+ size_t dir_name_len = strlen(fname); >+ /* >+ * Ensure it ends in a '\'. >+ */ > >- if((fname[dir_name_len-1] != '\\') && (fname[dir_name_len-1] != '/')) { >- pstrcat(fname, "/"); >- dir_name_len++; >+ if((fname[dir_name_len-1] != '\\') && (fname[dir_name_len-1] != '/')) { >+ pstrcat(fname, "/"); >+ } > } > > srvstr_get_path(inbuf, rel_fname, smb_buf(inbuf), sizeof(rel_fname), 0, STR_TERMINATE, &status); >@@ -1244,7 +1246,6 @@ > * This filename is relative to a directory fid. > */ > files_struct *dir_fsp = file_fsp(params,4); >- size_t dir_name_len; > > if(!dir_fsp) { > return ERROR_DOS(ERRDOS,ERRbadfid); >@@ -1272,15 +1273,18 @@ > */ > > pstrcpy( fname, dir_fsp->fsp_name ); >- dir_name_len = strlen(fname); > >- /* >- * Ensure it ends in a '\'. >- */ >+ if (ISDOT(fname)) { >+ fname[0] = '\0'; >+ } else { >+ size_t dir_name_len = strlen(fname); >+ /* >+ * Ensure it ends in a '\'. >+ */ > >- if((fname[dir_name_len-1] != '\\') && (fname[dir_name_len-1] != '/')) { >- pstrcat(fname, "/"); >- dir_name_len++; >+ if((fname[dir_name_len-1] != '\\') && (fname[dir_name_len-1] != '/')) { >+ pstrcat(fname, "/"); >+ } > } > > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4984
: 2929