diff options
author | Jeremy Allison <jra@samba.org> | 2007-09-11 18:31:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:40 -0500 |
commit | 351eb37a2555ce474ee02758f2f2cfee33d4d434 (patch) | |
tree | d7a9472eaeece669c613b9d6228b14cfe07ea6d4 /source3/smbd/dir.c | |
parent | d65ba539a4bd9671bab6f70e140dcc6fb8f0733e (diff) | |
download | samba-351eb37a2555ce474ee02758f2f2cfee33d4d434.tar.gz samba-351eb37a2555ce474ee02758f2f2cfee33d4d434.tar.bz2 samba-351eb37a2555ce474ee02758f2f2cfee33d4d434.zip |
r25102: Rewrite msdfs code to use talloced filenames. Passes make test
and make valgrindtest. Final step will be to change srvstr_get_path()
to return talloced memory in the major codepaths.
Jeremy.
(This used to be commit cf6b6f9c3a38b68d2671c753f412772344506742)
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index e602008b8f..b21e6501d6 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1019,7 +1019,6 @@ BOOL is_visible_file(connection_struct *conn, const char *dir_path, const char * } if (hide_unreadable || hide_unwriteable || hide_special) { - pstring link_target; char *entry = NULL; if (asprintf(&entry, "%s/%s", dir_path, name) == -1) { @@ -1029,7 +1028,7 @@ BOOL is_visible_file(connection_struct *conn, const char *dir_path, const char * /* If it's a dfs symlink, ignore _hide xxxx_ options */ if (lp_host_msdfs() && lp_msdfs_root(SNUM(conn)) && - is_msdfs_link(conn, entry, link_target, NULL)) { + is_msdfs_link(conn, entry, NULL)) { SAFE_FREE(entry); return True; } |