From: Christof Schmitt Date: Tue, 23 Jun 2020 18:55:05 +0000 (-0700) Subject: smbd: Remove code inside #ifdef HAVE_BROKEN_READDIR_NAME X-Git-Tag: talloc-2.3.2~1108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc0a48626206d5964ed04acbbf86f81e51b34c3;p=thirdparty%2Fsamba.git smbd: Remove code inside #ifdef HAVE_BROKEN_READDIR_NAME This is dead code, the define is never set. Signed-off-by: Christof Schmitt Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index df2d7605ad9..2194e09ab16 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -854,12 +854,6 @@ const char *vfs_readdirname(connection_struct *conn, void *p, dname = ptr->d_name; - -#ifdef HAVE_BROKEN_READDIR_NAME - /* using /usr/ucb/cc is BAD */ - dname = dname - 2; -#endif - status = SMB_VFS_TRANSLATE_NAME(conn, dname, vfs_translate_to_windows, talloc_tos(), &translated); if (NT_STATUS_EQUAL(status, NT_STATUS_NONE_MAPPED)) {