From nobody Wed Dec 21 20:01:25 2022 X-Original-To: standards@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 4Nckpt0781z1GwVj for ; Wed, 21 Dec 2022 20:01:26 +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 4Nckps5PdVz4Jx8 for ; Wed, 21 Dec 2022 20:01:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671652885; 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=XNmA8HLYDYmS2ffeUFFzA1qqN3mYCMBhfhkOxritixs=; b=JhezYiBr3j0TmdOBPisl6/fRGW8UZb+MM4yWOLhq6/vHmP1R22h3EMMun4IcIGqZhvH3fR GaH5VpP4NlEvc+OP6IqUM5X6eo4cpjIBVsOHxq0zNeUhmBMjwLamNKIS0OgzZw9VF+3/FN hcvxVOpu74YvkV3B09jQSJJ8bDo3c+Oe62vSDuEVsQ2HX0Tav7vJ994AVdEquho+YmNxEB SXlFE6gvxPBxkbvUGF7FlIVSRdQHAHyUmr6bajiO6igB17qoPLr1oMmGdqWxJ+7gwJB2Hs quUul5ie3p9c7M1ciEP6/87FsZyRdoA4JQBez9DAI6Yt6XXRm95+Awll7r14dA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671652885; a=rsa-sha256; cv=none; b=FiaFu1Tu7DPArRd8Zslkdv3uSWvcGmBz59gmRClg4xPH9anQN1+IcSbrzI8nWyVEH0rr6X 37O5NMtfP4wRt34vqVyoMvO0ABBQ61GBqDot5+C8yztzYQox6Z0nonHLeD1oa1KKlAN6IF ddwp+p5CmQUFuoUlsEQwxe+XoHW9i6hMDCV6OCNe/BzMSR3D+k8aKijWO8Gu8CgmbTW2xJ nQSgHi93MPVMMQu9GcdbJx94jD8o2y5so1toqX7D3NlncHfLjqrOQtlbKIYiWXML64d2YJ 3GhA4OKQzy2eWQ5F9pEwHEvd6L06vkE2Xxpd+VotK7vXDWz6FftT9X3L1bWmTw== 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 4Nckps4T1wzSP4 for ; Wed, 21 Dec 2022 20:01:25 +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 2BLK1Ph6041821 for ; Wed, 21 Dec 2022 20:01:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BLK1P9U041820 for standards@FreeBSD.org; Wed, 21 Dec 2022 20:01:25 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: standards@FreeBSD.org Subject: [Bug 268479] lib/libc/stdlib/getenv.c may have a problem with putenv() Date: Wed, 21 Dec 2022 20:01:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dclarke@blastwave.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268479 --- Comment #3 from Dennis Clarke --- (In reply to Mark Millard from comment #2) I must agree fully. There does not seem to be a reason to disallow a name=3Dvalue pair to exist where the value is nothing at all. I see the words "the value shall be composed of characters from the portable character set" but no where does the POSIX spec claim that we *must* have some characters after the equal '=3D' to form a "value". So I guess putenv() and friends are doing what they claim to do. Correctly. That leads to the other problem wherein env var names such as UNAME_s can override the uname(3) struct members within FreeBSD. If we have an env var name=3Dvalue such as "UNAME_r=3D" then how shall a process ever determine the uname(3) release data? It seems that I need to write my own hackary to walk through extern char **environ and mangle it myself? --=20 You are receiving this mail because: You are the assignee for the bug.=