From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGpuM-00009y-Md for qemu-devel@nongnu.org; Wed, 06 Jan 2016 10:21:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGpuI-0007sf-IB for qemu-devel@nongnu.org; Wed, 06 Jan 2016 10:21:54 -0500 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:35162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGpuI-0007sO-DH for qemu-devel@nongnu.org; Wed, 06 Jan 2016 10:21:50 -0500 Received: by mail-pa0-x236.google.com with SMTP id ho8so275602pac.2 for ; Wed, 06 Jan 2016 07:21:50 -0800 (PST) From: "Wei-Bo, Chen" Date: Wed, 6 Jan 2016 07:21:12 -0800 Message-Id: <1452093672-75002-1-git-send-email-webberapple@gmail.com> Subject: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Wei-Bo, Chen" Detail bug report in the following url: https://bugs.launchpad.net/qemu/+bug/1245703 Remove is_dir_maybe macro condition DT_LNK in util/path.c Signed-off-by: Wei-Bo, Chen --- util/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/path.c b/util/path.c index 4e4877e..b99e436 100644 --- a/util/path.c +++ b/util/path.c @@ -58,7 +58,7 @@ static struct pathelem *new_entry(const char *root, #if defined(DT_DIR) && defined(DT_UNKNOWN) && defined(DT_LNK) # define dirent_type(dirent) ((dirent)->d_type) # define is_dir_maybe(type) \ - ((type) == DT_DIR || (type) == DT_UNKNOWN || (type) == DT_LNK) + ((type) == DT_DIR || (type) == DT_UNKNOWN) #else # define dirent_type(dirent) (1) # define is_dir_maybe(type) (type) -- 2.5.0