diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-13 00:56:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:33 -0500 |
commit | cddd47d2cdf0b25ec0d308f2a775e7a371d28718 (patch) | |
tree | 6bcf88bf4ba74e4e50826b3f0a7bf027a582e005 /source3/smbd/vfs.c | |
parent | 89db7e100193c3b895180730f49061424a806c8e (diff) | |
download | samba-cddd47d2cdf0b25ec0d308f2a775e7a371d28718.tar.gz samba-cddd47d2cdf0b25ec0d308f2a775e7a371d28718.tar.bz2 samba-cddd47d2cdf0b25ec0d308f2a775e7a371d28718.zip |
r658: Oops - make smbclient work again with widelinks = no :-).
Jeremy.
(This used to be commit a6979417063e0f0067004dc6207e8e78aa41a58f)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 0f3d591ebb..a415e0470e 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -829,7 +829,11 @@ BOOL reduce_name(connection_struct *conn, pstring fname) if (p) { *p++ = '\0'; fstrcpy(last_component, p); + } else { + fstrcpy(last_component, tmp_fname); + pstrcpy(tmp_fname, "."); } + #ifdef REALPATH_TAKES_NULL resolved_name = SMB_VFS_REALPATH(conn,tmp_fname,NULL); #else |