From: Christof Schmitt Date: Tue, 23 Jun 2020 18:51:41 +0000 (-0700) Subject: lib/util: Remove code inside #ifdef HAVE_BROKEN_READDIR_NAME X-Git-Tag: talloc-2.3.2~1109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee6b31ad9b0f54e3d19e1c64033dec357d9f5b0d;p=thirdparty%2Fsamba.git lib/util: 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/lib/util.c b/source3/lib/util.c index 975e852506d..a51c4aaf514 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -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); }