[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#210861: marked as done (libc6: readdir always returns dtype as unknown)



Your message dated Sun, 14 Sep 2003 16:36:01 +0100
with message-id <1063553760.16249.19.camel@kc.cam.armlinux.org>
and subject line Bug#210861: libc6: readdir always returns dtype as unknown
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 14 Sep 2003 10:34:06 +0000
>From jacob@omnia.dk Sun Sep 14 05:34:04 2003
Return-path: <jacob@omnia.dk>
Received: from pfepb.post.tele.dk [193.162.153.3] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19yUCi-0003S0-00; Sun, 14 Sep 2003 05:34:04 -0500
Received: from [127.0.0.1] (0x50a446cc.albnxx16.adsl-dhcp.tele.dk [80.164.70.204])
	by pfepb.post.tele.dk (Postfix) with ESMTP
	id 771C85EE13D; Sun, 14 Sep 2003 12:34:02 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jacob Kolding <jacob@omnia.dk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6: readdir always returns dtype as unknown
X-Mailer: reportbug 2.28
Date: Sun, 14 Sep 2003 12:33:47 +0200
Message-Id: <[🔎] 20030914103402.771C85EE13D@pfepb.post.tele.dk>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_9_13
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_13 (1.174.2.15-2003-03-30-exp)

Package: libc6
Version: 2.3.2-7
Severity: normal

when using the readdir function from <dirent.h> to get dirents the
dtype member of dirent is always returned as unknown.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


---------------------------------------
Received: (at 210861-done) by bugs.debian.org; 14 Sep 2003 15:36:14 +0000
>From pb@nexus.co.uk Sun Sep 14 10:36:02 2003
Return-path: <pb@nexus.co.uk>
Received: from mta02-svc.ntlworld.com [62.253.162.42] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19yYuw-0000Tb-00; Sun, 14 Sep 2003 10:36:02 -0500
Received: from kc.cam.armlinux.org ([81.96.69.239])
          by mta02-svc.ntlworld.com
          (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP
          id <20030914153601.ZPLA3100.mta02-svc.ntlworld.com@kc.cam.armlinux.org>;
          Sun, 14 Sep 2003 16:36:01 +0100
Received: from localhost ([127.0.0.1])
	by kc.cam.armlinux.org with esmtp (Exim 3.36 #1 (Debian))
	id 19yYuv-0004Iv-00; Sun, 14 Sep 2003 16:36:01 +0100
Subject: Re: Bug#210861: libc6: readdir always returns dtype as unknown
From: Philip Blundell <pb@nexus.co.uk>
To: Jacob Kolding <jacob@omnia.dk>
Cc: 210861-done@bugs.debian.org
In-Reply-To: <[🔎] 1063552859.18751.136.camel@Zentipede>
References: <[🔎] 20030914103402.771C85EE13D@pfepb.post.tele.dk>
	 <[🔎] 1063539488.32097.110.camel@kc.cam.armlinux.org>
	 <[🔎] 1063541870.18754.2.camel@Zentipede>
	 <[🔎] 1063542758.32099.113.camel@kc.cam.armlinux.org>
	 <[🔎] 1063544512.18751.19.camel@Zentipede>
	 <[🔎] 1063549211.16249.1.camel@kc.cam.armlinux.org>
	 <[🔎] 1063551742.18751.130.camel@Zentipede>
	 <[🔎] 1063552117.16246.8.camel@kc.cam.armlinux.org>
	 <[🔎] 1063552859.18751.136.camel@Zentipede>
Content-Type: text/plain
Message-Id: <1063553760.16249.19.camel@kc.cam.armlinux.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Sun, 14 Sep 2003 16:36:01 +0100
Content-Transfer-Encoding: 7bit
Delivered-To: 210861-done@bugs.debian.org
X-Spam-Status: No, hits=-5.7 required=4.0
	tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_9_13
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_13 (1.174.2.15-2003-03-30-exp)

On Sun, 2003-09-14 at 16:20, Jacob Kolding wrote:
> In that case readdir seems like a rather useless function if it is so
> dependent on kernel versions an fs types.
> 
> Do you know of any other functions that can be used instead?
> My goal is to have a program that works with any 
> fs type and kernel version.

If readdir() returns d_type == DT_UNKNOWN, you need to call stat()
yourself in order to determine the type of object.  I'm not aware of any
interface provided by glibc that will do this for you.

I'm closing this bug, since it seems that glibc is behaving correctly.

p.



Reply to: