]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove code inside #ifdef HAVE_BROKEN_READDIR_NAME
authorChristof Schmitt <cs@samba.org>
Tue, 23 Jun 2020 18:55:05 +0000 (11:55 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 16 Jul 2020 01:29:45 +0000 (01:29 +0000)
This is dead code, the define is never set.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/vfs.c

index df2d7605ad913a0a5366d0c22ae9ff39067a9d7d..2194e09ab1656d4c4b9dd70458ebc9c18baba369 100644 (file)
@@ -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)) {