public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4076] New: nftw "/" 0 FTW_CHDIR fails with "no such file or directory"
@ 2007-02-19 16:20 aurelien at aurel32 dot net
2007-02-21 9:37 ` [Bug libc/4076] " drepper at redhat dot com
2007-07-12 14:57 ` cvs-commit at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2007-02-19 16:20 UTC (permalink / raw)
To: glibc-bugs
nftw to "/" with FTW_CHDIR fails with "no such file or directory"; see
the example below.
#define _GNU_SOURCE
#include <error.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <ftw.h>
static int fn(const char *file, const struct stat *sb, int flag, struct FTW *s)
{
puts(file);
return 0;
}
int main()
{
if (nftw("/", fn, 0, FTW_CHDIR) < 0) {
error(EXIT_FAILURE, errno, "nftw / FTW_CHDIR");
}
exit(EXIT_SUCCESS);
}
--
Summary: nftw "/" 0 FTW_CHDIR fails with "no such file or
directory"
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=4076
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/4076] nftw "/" 0 FTW_CHDIR fails with "no such file or directory"
2007-02-19 16:20 [Bug libc/4076] New: nftw "/" 0 FTW_CHDIR fails with "no such file or directory" aurelien at aurel32 dot net
@ 2007-02-21 9:37 ` drepper at redhat dot com
2007-07-12 14:57 ` cvs-commit at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2007-02-21 9:37 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-02-21 09:37 -------
Fixed in cvs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=4076
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/4076] nftw "/" 0 FTW_CHDIR fails with "no such file or directory"
2007-02-19 16:20 [Bug libc/4076] New: nftw "/" 0 FTW_CHDIR fails with "no such file or directory" aurelien at aurel32 dot net
2007-02-21 9:37 ` [Bug libc/4076] " drepper at redhat dot com
@ 2007-07-12 14:57 ` cvs-commit at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2007-07-12 14:57 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2007-07-12 14:57 -------
Subject: Bug 4076
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_5-branch
Changes by: jakub@sourceware.org 2007-07-12 14:57:39
Modified files:
. : ChangeLog
io : Makefile ftw.c
Added files:
io : bug-ftw5.c
Log message:
2007-02-21 Ulrich Drepper <drepper@redhat.com>
[BZ #4076]
* io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
(open_dir_stream): Likewise.
* io/Makefile (tests): Add bug-ftw5.
* io/bug-ftw5.c: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.49&r2=1.10362.2.50
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/io/bug-ftw5.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=NONE&r2=1.1.6.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/io/Makefile.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.66.2.1&r2=1.66.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/io/ftw.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.54&r2=1.54.2.1
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4076
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-12 14:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-19 16:20 [Bug libc/4076] New: nftw "/" 0 FTW_CHDIR fails with "no such file or directory" aurelien at aurel32 dot net
2007-02-21 9:37 ` [Bug libc/4076] " drepper at redhat dot com
2007-07-12 14:57 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).