From nobody Mon Nov 17 16:41:44 2025 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 4d9D6J00hDz6GXHD for ; Mon, 17 Nov 2025 16:41:44 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d9D6H6hcdz3Trs for ; Mon, 17 Nov 2025 16:41:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763397703; 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=hZszwih1W5eXi6mBztRj+rWcg6MfDree1gzg6LK+xp8=; b=YHjFLjcEOAzJw0u1YbsvKlinOsXZvfDPR8xdfP4tWA5Nphi+UCIUODY3Nw8ZtCpZ6DHLDi KN8WqtEvDoPssASeDtAKF0o2UkpsyA/mAVWeE3vlPH/2V6APJ/bR1zTPVTdLQKcVdqmxN3 MuTa+1QE4I3LbWua6kMOfX1mXT50SImaNkZVLHQ7YxiDmD4aMrjPajDzmyCuN7J2Zg6PcR HTEyTVbJe2bHXdIvT2CDfSROvQPt3crF9JBhlqjSQajz123gkfzAoMwucrdUSXRfyLZWpF mGkW8GSchyaEV/sABVtf6Nbw2hmeNirmTsk0MxpVI/xGY8Jn9+HuK3f2XrrxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763397703; 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=hZszwih1W5eXi6mBztRj+rWcg6MfDree1gzg6LK+xp8=; b=nxZpL59CVV6SjbOlLQuZH+MpC4uupmXmTeyK8Yco+RJp0USqB/Vo1bKxQ0H7rWHlrtMcfs 7ZDDngwAb4B5tw0yle9o0KCTNkXfu22w/jXnA8gBCQMbivNQBTuzfAcHMBRT7oThaF5OOg MlNR1RjfLSuT2bbp1hdV0E78t5A5vHJftwR80R4O1yExTNaCvwQ1i/9Ryn6RMaIsp9GG+Z zehvwL1I2hLp+KMTlKQ58Vnbh2z5+4Dl0tO3QNgaWYmouTidn1Sc6P0ttx0zZQdc6rpdzU mMetbNlobLpD0LvB6B5pxf7VzgrRbSjORdJ2/i0ydMzaRQ5HX7YPaA3hyiAdcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763397703; a=rsa-sha256; cv=none; b=ixnCF8q4VwsDm/tca8jd4Z9LyoetbhWd4Goe1Manqo3E0QfjaDL/xWiigMdL+ml6FJZSD1 6ikr122zhe/PMyK48cYmjVz+6dRem6SSqB/bFNrCmUU7Q8eifFA13IE/JYK4cyzNLqKExO N6oxhy1Kc5SphkH1xsPzH/eFAOG+uiQEleNpv+knu9WZX2pU0QNxEDQaHGw0FRloovDYJN n4dVmrRcJ1LnjtzxMMoQkGqfn/KD2AZuiInxic9JDbEy0YRp+egwWch23BFeyPWR1xpBPC fHrmoVAaEgHwa27apF+8X86Yr+0/jQMTr52QHu5rheNMKwABLkPUhkV1BlHrdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d9D6H6GNyz163 for ; Mon, 17 Nov 2025 16:41:43 +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 5AHGfhHr068070 for ; Mon, 17 Nov 2025 16:41:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5AHGfhF0068069 for bugs@FreeBSD.org; Mon, 17 Nov 2025 16:41:43 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 258411] blacklistctl dump fails shortly after first use Date: Mon, 17 Nov 2025 16:41:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D258411 --- Comment #2 from Ed Maste --- IMO we should either not create but not populate the file, or just treat an empty file as identical to a missing file. E.g. in state_open(): DB * state_open(const char *dbname, int flags, mode_t perm) { DB *db; ... db =3D dbopen(dbname, flags, perm, DB_HASH, &openinfo); if (db =3D=3D NULL) { if (errno =3D=3D ENOENT && (flags & O_CREAT) =3D=3D 0) return NULL; (*lfun)(LOG_ERR, "%s: can't open `%s' (%m)", __func__, dbna= me); } return db; } We could add a check for an empty file and also return NULL. --=20 You are receiving this mail because: You are the assignee for the bug.=