From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by sourceware.org (Postfix) with ESMTPS id D49C53858D28 for ; Sat, 29 Jan 2022 01:04:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D49C53858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=opensuse.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cristianrodriguez.net Received: by mail-wm1-f50.google.com with SMTP id c192so5720160wma.4 for ; Fri, 28 Jan 2022 17:04:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z/Er2XWmLxQ6TEvJH+o6TxVvyF3FEaCaZxO8SQ8LAFE=; b=G0dDQ5mmip7hu5Re3dSdkNbpIcnp4xva7Q6lii8IZ3ICoqcnu97JRENJxvcHpOuZBZ s12UtOfC90sDXKHdw0xe1p/Su0ChAP+J2GMUWdLU1GWZwYOHLglxpqSbw0gHU6fBurSV 4BgbNefng3R3yD6DyyI6FVJv9THlubyZts4DHXpLoXRIrETTq9+vyuQk13nM846pvYrY bwrza1VlxMiZReu9bLTkVcv6KoIZx3FvXP454OzpLLpBEA6UawFlSdBP9U2IVuU9HVOK tIvdEKO2GLC8wDh5/N0jnar0Tc4A5UIdROMW7CyzsSWZ1VBns/lqSZNbNpco/l7OQJ9x u70g== X-Gm-Message-State: AOAM531+YXAVY6Oi6S+UhxHyZV1cWQYYa3j4dPFi9Fg5MIKJdbjWeKG5 sStqCuYxWKDZZu3rt/IAxUhQcl6IrrlFLkgxjMcnyXxsb5lmAw== X-Google-Smtp-Source: ABdhPJzr6pdfUE5fbYjK8XUTEJxTZr3/zbTQL5jqf8uFJOoO8iJoP+bimV5F1Xvg+hxspttIVFoaHNFOkaDRsnMEydw= X-Received: by 2002:a1c:7516:: with SMTP id o22mr9539264wmc.55.1643418291813; Fri, 28 Jan 2022 17:04:51 -0800 (PST) MIME-Version: 1.0 References: <20220128133937.9555-1-crrodriguez@opensuse.org> In-Reply-To: From: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= Date: Fri, 28 Jan 2022 22:04:40 -0300 Message-ID: Subject: Re: [PATCH 2/2] linux: posix_spawn: return EINVAL on argc < 1 To: Joseph Myers Cc: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2022 01:04:54 -0000 On Fri, Jan 28, 2022 at 8:49 PM Joseph Myers wrote: > Errors for argc == 0 (with argv != NULL) are contrary to POSIX, which > allows that case other than for Strictly Conforming POSIX Applications, The case you mention as valid are rejected by BSDs.. QNX and others. so portable applications cannot rely on this either. . freebsd head and openbsd -EINVAL with argc == 0 and has never allowed argv to be NULL (EFAULTs)