From nobody Fri Apr 14 12:52:46 2023 X-Original-To: dev-commits-src-all@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 4Pybvg3LRXz45BXN; Fri, 14 Apr 2023 12:52:47 +0000 (UTC) (envelope-from git@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 4Pybvf6hrLz3rJ6; Fri, 14 Apr 2023 12:52:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681476767; 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; bh=5OMRZqKWB4rkLj92PQVqq1nqR+VWVZcrz+xMLiig4OA=; b=j9yXf9lxSvFb0/CEx2kc4OsASgibed3Bd8qyYh0VW5Ov96nHmdHzXoekZkQAKUKHzAaCtI fDx0RkmJNXqcZSAG7gQ63stPJC9ufQfW/kYYezccHhpylMWOaNMy6/oiYsNlu5JpQD6RMF g1OE4twXRjGIEtwTbYosrEnDvJCtmmPFpxtoRyCMUYzuMkQ53CrLWCTVufUlFESQoOilll 4cZvEan3O0c0upy7e19wKbXRAxiNEuQ6BbciZUSEHEniEMKxpJSlrwx6USGmuS9GYib8mH PUcwkTFfSCOPJXWcDBhuNemk8ISz/8jXlUcm65yftkbiHQ7DMwDHqJ9T7M7jlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681476766; 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; bh=5OMRZqKWB4rkLj92PQVqq1nqR+VWVZcrz+xMLiig4OA=; b=XA+Cjww42IBAx2BZIF5txixrCi+qWDiJJTSaDB4NcFVVKtyPv44fHha124cAgN0POeNeTw frDiHReFqb+e6xalG08D1KnGaGQmdlC/F160XGMwKpy7PGjS6izKwNK6tcW92fACDboOmc uu52j94wgoik9HNK6hiZKNgsrTBAIe/BDlNJFYjkDu19y+B5SuskorkRtPlLwa7pPdWTsG 4G9VWRDnNjZfkxZTJxPpc8PM4oP0qWzHUoHaI5RxG6BTvujjQoMoxnfkH10nFKpKGcdjgy kXxumWK5RyNO76ua1UJRfwXOZC5z7DkLTRJKc8VIG7EiszS994PxjLqr+zZHBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681476766; a=rsa-sha256; cv=none; b=adebMELfe1cTsj5ih0558+u5X2Rc/IGXV598xy+XEZvizgrQPH8xacf7x4p3mrMSEcoZww EcqsC6Nyn/ohessVScz+XAYmmNMTZyUJhaAQwHm+BgAeGIXoFCw9qII2NbP1JHk7vztmQ9 fcYGRg3icUyRAG55+UeUfWZ8hbgyQQ/Tx4ZD5eftVuWYu8rEIcvqS+NYbll3IfmdzawLk4 g+9cQWK9ankIbY1lN1NoWkps1IRWH5fj0qtpk7OIg0JvsuJVD7QSxtKctkvyzGMW2vzydL EONbbKkyak9YsgHty0gaE0coDrVOk6lSfAjru47RF1szdsmHewUGLFHFJqNWhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Pybvf5Kz9zQ3m; Fri, 14 Apr 2023 12:52:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33ECqkmU074705; Fri, 14 Apr 2023 12:52:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33ECqk9t074704; Fri, 14 Apr 2023 12:52:46 GMT (envelope-from git) Date: Fri, 14 Apr 2023 12:52:46 GMT Message-Id: <202304141252.33ECqk9t074704@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 5f31bbc5fab3 - stable/13 - makefs: do not pass mode to open() call lacking O_CREAT List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5f31bbc5fab3f3df9a8e586d39411559a7716dae Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5f31bbc5fab3f3df9a8e586d39411559a7716dae commit 5f31bbc5fab3f3df9a8e586d39411559a7716dae Author: Ed Maste AuthorDate: 2023-03-30 01:42:44 +0000 Commit: Ed Maste CommitDate: 2023-04-14 12:10:36 +0000 makefs: do not pass mode to open() call lacking O_CREAT Obtained from: OpenBSD ffs.c 1.35 (cherry picked from commit 45e405603b7f4d33372f32c80453ab5cd0d8fdcf) --- usr.sbin/makefs/ffs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c index 1911f75fb4fd..448aa08b9d21 100644 --- a/usr.sbin/makefs/ffs.c +++ b/usr.sbin/makefs/ffs.c @@ -954,7 +954,7 @@ ffs_write_file(union dinode *din, uint32_t ino, void *buf, fsinfo_t *fsopts) if (isfile) { fbuf = emalloc(ffs_opts->bsize); - if ((ffd = open((char *)buf, O_RDONLY, 0444)) == -1) { + if ((ffd = open((char *)buf, O_RDONLY)) == -1) { err(EXIT_FAILURE, "Can't open `%s' for reading", (char *)buf); } } else {