Date: Fri, 14 Jun 2024 04:59:02 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 18704] GLOB_ERR not handled correctly by glob() Message-ID: <bug-18704-227-ZeqiXZz7OD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-18704-227@https.bugs.freebsd.org/bugzilla/> References: <bug-18704-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D18704 Warner Losh <imp@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |FIXED --- Comment #7 from Warner Losh <imp@FreeBSD.org> --- So this bug has been fixed by other ways. The following works: #include <err.h> #include <glob.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { glob_t globbuf; if (glob("/secretdir/*",GLOB_ERR,0,&globbuf) =3D=3D 0) errx(1, "FAILED"); printf("SUCCESS"); exit(0); } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-18704-227-ZeqiXZz7OD>