From cddd47d2cdf0b25ec0d308f2a775e7a371d28718 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 13 May 2004 00:56:00 +0000 Subject: r658: Oops - make smbclient work again with widelinks = no :-). Jeremy. (This used to be commit a6979417063e0f0067004dc6207e8e78aa41a58f) --- source3/smbd/vfs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/smbd/vfs.c') 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 -- cgit