The Samba-Bugzilla – Attachment 602 Details for
Bug 1602
reduce_name fails when follow symlinks = no
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for this problem.
look (text/plain), 731 bytes, created by
Jeremy Allison
on 2004-08-17 11:55:40 UTC
(
hide
)
Description:
Fix for this problem.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2004-08-17 11:55:40 UTC
Size:
731 bytes
patch
obsolete
>Index: smbd/vfs.c >=================================================================== >--- smbd/vfs.c (revision 1864) >+++ smbd/vfs.c (working copy) >@@ -814,7 +814,7 @@ > it is below dir in the heirachy. This uses realpath. > ********************************************************************/ > >-BOOL reduce_name(connection_struct *conn, pstring fname) >+BOOL reduce_name(connection_struct *conn, const pstring fname) > { > #ifdef REALPATH_TAKES_NULL > BOOL free_resolved_name = True; >@@ -924,7 +924,11 @@ > } > > if (!*p) { >- pstrcpy(resolved_name, "."); >+ if (fname[0] == '.' && fname[1] == '/' && fname[2] == '\0') { >+ pstrcpy(resolved_name, "./"); >+ } else { >+ pstrcpy(resolved_name, "."); >+ } > p = resolved_name; > } >
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 1602
: 602