From nobody Fri Jun 14 04:59:02 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W0n9z14qxz5NNjj for ; Fri, 14 Jun 2024 04:59:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W0n9y5fYJz4qn8 for ; Fri, 14 Jun 2024 04:59:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718341142; a=rsa-sha256; cv=none; b=onyjTFAIwVNn/7DByVfKO84fc6euft9TuvLvwwxq12mgQ8YXYMZygttzlAD8dlMIjULq00 Ip7bZtFZjrAu57cTwf8M3vuva8nYobQS4PjQqZWsM7vLXRyW3cBPabJsK5oaTJAlwLCmY3 mZkwl/EecTe6bH03Qg6mI/t0gMZBBFIO2C2RNfibZGkTgYCw0NZBCKutZgPGoEQxNYYxhU 9qQ7rPOz18l9oWET/UxLnZ9juoWgWTuRhkT0dQRkIakRI4i6Vgl6Q/rU912W+kHZY5cqjm XjDFMAFVFTA4c8jyxIjp/0auoWxVFvPHVhOaEFV/2KYKx0AWs52oNyAOdh7w8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718341142; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VVVDTWTm781eNoVhPQEy5bYrRb9e3D4agDcOF4huWhk=; b=FBiigLsun7qhN8g21ZXy4aYmAX/ykf+IplOuyIfavvM86HCD8GHl/tETXJOZBwIQUP+Nnl 3lQSxpSz00FU5tg/D0JymGEDIwhkD8A911e7e6ILxYzSh7EoVQLntI0mYiTt0su1hPHt9Y aPbVsXbXPjWmyCdN/RGfv9iBVHYglUXAz7yeJiYpvfSAH+KguHEZCLhiACs6ut2s4cbh4o ZHUWfYR5b4q2ih0fSaJ94zCEmbzgWVICHAJL9p+qs/hHgBhN6nD4JWeea75C1b/2mPZuoz kYr8GCbtGKvDveEUO3DTmg2N7D4UoqUvbo8UuFS9rMoGxifBwDOPlUUjq6LNkg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W0n9y5Gb0z167x for ; Fri, 14 Jun 2024 04:59:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45E4x2lF038895 for ; Fri, 14 Jun 2024 04:59:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45E4x2IV038892 for bugs@FreeBSD.org; Fri, 14 Jun 2024 04:59:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 18704] GLOB_ERR not handled correctly by glob() Date: Fri, 14 Jun 2024 04:59:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 4.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: imp@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D18704 Warner Losh changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |FIXED --- Comment #7 from Warner Losh --- So this bug has been fixed by other ways. The following works: #include #include #include #include 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.=