lib/util: Remove code inside #ifdef HAVE_BROKEN_READDIR_NAME
authorChristof Schmitt <cs@samba.org>
Tue, 23 Jun 2020 18:51:41 +0000 (11:51 -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/lib/util.c

index 975e852506da5651896982b17c0d7a5bcce80854..a51c4aaf5140244dad2af317084e30d293501053 100644 (file)
@@ -867,11 +867,6 @@ const char *readdirname(DIR *p)
 
        dname = ptr->d_name;
 
-#ifdef HAVE_BROKEN_READDIR_NAME
-       /* using /usr/ucb/cc is BAD */
-       dname = dname - 2;
-#endif
-
        return talloc_strdup(talloc_tos(), dname);
 }