mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Gaël PORTAY" <gael.portay@rtone.fr>
To: musl@lists.openwall.com
Cc: gael.portay@rtone.fr
Subject: [musl] [PATCH 1/3] remove flag argument from fchmodat syscall
Date: Thu, 18 Jan 2024 01:05:38 +0100	[thread overview]
Message-ID: <20240118000540.369070-2-gael.portay@rtone.fr> (raw)
In-Reply-To: <20240118000540.369070-1-gael.portay@rtone.fr>

linux's does not have the flag argument for fchmodat syscall.
---
 src/stat/fchmodat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stat/fchmodat.c b/src/stat/fchmodat.c
index bc581050..41db0c46 100644
--- a/src/stat/fchmodat.c
+++ b/src/stat/fchmodat.c
@@ -5,7 +5,7 @@
 
 int fchmodat(int fd, const char *path, mode_t mode, int flag)
 {
-	if (!flag) return syscall(SYS_fchmodat, fd, path, mode, flag);
+	if (!flag) return syscall(SYS_fchmodat, fd, path, mode);
 
 	if (flag != AT_SYMLINK_NOFOLLOW)
 		return __syscall_ret(-EINVAL);
-- 
2.43.0


  reply	other threads:[~2024-01-18  0:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-18  0:05 [musl] [PATCH 0/3] use new SYS_fchmodat2 syscall to implement fchmodat with flags Gaël PORTAY
2024-01-18  0:05 ` Gaël PORTAY [this message]
2024-01-18  0:05 ` [musl] [PATCH 2/3] bits/syscall.h: add __NR_fchmodat2 from linux v6.6 Gaël PORTAY
2024-02-08  2:10   ` Rich Felker
2024-01-18  0:05 ` [musl] [PATCH 3/3] use new SYS_fchmodat2 syscall to implement fchmodat with flags Gaël PORTAY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240118000540.369070-2-gael.portay@rtone.fr \
    --to=gael.portay@rtone.fr \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).