get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2217566/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2217566,
    "url": "http://patchwork.ozlabs.org/api/patches/2217566/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20260330081840.878377-2-lucas.chollet@free.fr/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260330081840.878377-2-lucas.chollet@free.fr>",
    "list_archive_url": null,
    "date": "2026-03-30T08:18:39",
    "name": "[1/1] posix: Add POSIX aliases to some spawn functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "80f42242e5121791ed3ce3d9cb76df977db00301",
    "submitter": {
        "id": 86596,
        "url": "http://patchwork.ozlabs.org/api/people/86596/?format=api",
        "name": "Lucas Chollet",
        "email": "lucas.chollet@free.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20260330081840.878377-2-lucas.chollet@free.fr/mbox/",
    "series": [
        {
            "id": 497971,
            "url": "http://patchwork.ozlabs.org/api/series/497971/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=497971",
            "date": "2026-03-30T08:18:38",
            "name": "posix: Add POSIX aliases to some spawn functions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497971/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217566/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217566/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=free.fr header.i=@free.fr header.a=rsa-sha256\n header.s=smtp-20201208 header.b=bh0u1RjS;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=free.fr header.i=@free.fr header.a=rsa-sha256\n header.s=smtp-20201208 header.b=bh0u1RjS",
            "sourceware.org;\n dmarc=pass (p=quarantine dis=none) header.from=free.fr",
            "sourceware.org; spf=pass smtp.mailfrom=free.fr",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=2a01:e0c:1:1599::14"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkkgw6sBTz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 19:19:56 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D1CE44B9208B\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 08:19:54 +0000 (GMT)",
            "from smtp5-g21.free.fr (smtp5-g21.free.fr\n [IPv6:2a01:e0c:1:1599::14])\n by sourceware.org (Postfix) with ESMTPS id 66AEE4BA2E3E\n for <libc-alpha@sourceware.org>; Mon, 30 Mar 2026 08:18:55 +0000 (GMT)",
            "from itxub.fritz.box (unknown [84.254.90.136])\n (Authenticated sender: lucas.chollet@free.fr)\n by smtp5-g21.free.fr (Postfix) with ESMTPSA id EE5A960141;\n Mon, 30 Mar 2026 10:18:51 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org D1CE44B9208B",
            "OpenDKIM Filter v2.11.0 sourceware.org 66AEE4BA2E3E"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 66AEE4BA2E3E",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 66AEE4BA2E3E",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774858735; cv=none;\n b=sg5XHferf1ZqqWJXKgoNXogenOg9nSQ7Tis30UlVwfwePCHwjCJZZz2n4GZpRVibdJB5o67vjR9vGMxWss0JrviZ70RRbo0Nr61MWBiK65IokIQDnl9+5iuzbw3WD9+FBNe2mhVbjKZB8TZzi5e7Q4goAYzgtfd1vxi/Nfr364s=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774858735; c=relaxed/simple;\n bh=BRWmO1/TaSunW+1XZx07L855iXiV/MeIfd/gRZvpXY4=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=twBqcxgM4+35XGd9AWM3TVuOK0Bn17AJULpumz9e9J7h79DZQL1976x0DrgkmrJ+f30BxLpTZMBv2zjTtlQNjAPWljlKR355vIHG2sIfzUwJg9fLCoH8GU2K3ur8JVFCjGiXzZkjXvAkyvROE6HTVIWLjV/2bzQ+oYLU6yk3AeA=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr;\n s=smtp-20201208; t=1774858734;\n bh=BRWmO1/TaSunW+1XZx07L855iXiV/MeIfd/gRZvpXY4=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=bh0u1RjSW+miHo8yUtkZTtNs3m+vPDRe6Y8/2QCqHD2LwRlLtU3CM0NA8TYa11u88\n xabK4yJwsS2OauxUBgZBorVWpvgJtnCTKvR9WPHoRCj1IXyGY5YABovShBJGD0ygA/\n mKvTaUATSa/Q+f3CzQBb76QMpnnjLW11skggpBBac5D5huyoV+EKFIxtXHFXAq7JKe\n sdwxs/fFZoPdgMgh8MKvP5z5Y+ES4Zu7gUkDnWXarM+u9YwkWmHSd5NQLrzBEA/XaZ\n zvQkkTlBJXQZ30TiQm1DLw44tJcZhzq9XKTgGjbOM+8TCdW15Cia5nDorycglzVvHk\n LqV91QTHrzvcA==",
        "From": "Lucas Chollet <lucas.chollet@free.fr>",
        "To": "libc-alpha@sourceware.org",
        "Cc": "Lucas Chollet <lucas.chollet@free.fr>",
        "Subject": "[PATCH 1/1] posix: Add POSIX aliases to some spawn functions",
        "Date": "Mon, 30 Mar 2026 10:18:39 +0200",
        "Message-ID": "<20260330081840.878377-2-lucas.chollet@free.fr>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260330081840.878377-1-lucas.chollet@free.fr>",
        "References": "<20260330081840.878377-1-lucas.chollet@free.fr>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libc-alpha@sourceware.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Libc-alpha mailing list <libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>",
        "List-Archive": "<https://sourceware.org/pipermail/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-request@sourceware.org?subject=help>",
        "List-Subscribe": "<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>",
        "Errors-To": "libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org"
    },
    "content": "Both `posix_spawn_file_actions_add{,f}chdir` functions are now fully\ndefined by POSIX-2024, this patch adds both functions as aliases of the\nalready existing `posix_spawn_file_actions_add{,f}chdir_np` GNU\nextensions.\n\nThis makes glibc more compliant in regards to POSIX-2024.\n\nSigned-off-by: Lucas Chollet <lucas.chollet@free.fr>\n---\n conform/data/spawn.h-data                     |   4 +\n posix/Versions                                |   4 +\n posix/spawn.h                                 |  20 ++\n posix/spawn_faction_addchdir.c                |   3 +\n posix/spawn_faction_addfchdir.c               |   3 +\n posix/tst-spawn-chdir.c                       | 222 ++++++++++--------\n .../unix/sysv/linux/x86_64/64/libc.abilist    |   2 +\n 7 files changed, 154 insertions(+), 104 deletions(-)",
    "diff": "diff --git a/conform/data/spawn.h-data b/conform/data/spawn.h-data\nindex 43aa9cb8ae..1f332324c2 100644\n--- a/conform/data/spawn.h-data\n+++ b/conform/data/spawn.h-data\n@@ -29,6 +29,10 @@ function int posix_spawnattr_setpgroup (posix_spawnattr_t*, pid_t)\n function int posix_spawnattr_setschedparam (posix_spawnattr_t*, const struct sched_param*)\n function int posix_spawnattr_setschedpolicy (posix_spawnattr_t*, int)\n function int posix_spawnattr_setsigmask (posix_spawnattr_t*, const sigset_t*)\n+#if defined XOPEN2K24 || defined POSIX2024\n+function int posix_spawn_file_actions_addchdir (posix_spawn_file_actions_t*, const char *)\n+function int posix_spawn_file_actions_addfchdir (posix_spawn_file_actions_t*, int)\n+#endif\n function int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t*, int)\n function int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t*, int, int)\n function int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t*, int, const char *, int, mode_t)\ndiff --git a/posix/Versions b/posix/Versions\nindex 0624d24bcc..3c15dbb50c 100644\n--- a/posix/Versions\n+++ b/posix/Versions\n@@ -159,6 +159,10 @@ libc {\n   GLIBC_2.35 {\n     posix_spawn_file_actions_addtcsetpgrp_np;\n   }\n+  GLIBC_2.44 {\n+    posix_spawn_file_actions_addchdir;\n+    posix_spawn_file_actions_addfchdir;\n+  }\n   GLIBC_PRIVATE {\n     __libc_fork; __libc_pread; __libc_pwrite;\n     __nanosleep_nocancel; __pause_nocancel;\ndiff --git a/posix/spawn.h b/posix/spawn.h\nindex 5e68752a66..1fc300ed13 100644\n--- a/posix/spawn.h\n+++ b/posix/spawn.h\n@@ -200,6 +200,26 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *\n \t\t\t\t\t     int __fd, int __newfd)\n      __THROW __nonnull ((1));\n \n+#ifdef __USE_XOPEN2K24XSI\n+\n+/* Add an action changing the directory to PATH during spawn.  This\n+   affects the subsequent file actions.\n+   Alias of posix_spawn_file_actions_addchdir_np.  */\n+extern int posix_spawn_file_actions_addchdir (posix_spawn_file_actions_t *\n+\t\t\t\t\t      __restrict __actions,\n+\t\t\t\t\t      const char *__restrict __path)\n+     __THROW __nonnull ((1, 2));\n+\n+/* Add an action changing the directory to FD during spawn.  This\n+   affects the subsequent file actions.  FD is not duplicated and must\n+   be open when the file action is executed.\n+   Alias of posix_spawn_file_actions_addfchdir_np.  */\n+extern int posix_spawn_file_actions_addfchdir (posix_spawn_file_actions_t *,\n+\t\t\t\t\t       int __fd)\n+     __THROW __nonnull ((1));\n+\n+#endif /* __USE_XOPEN2K24XSI */\n+\n #ifdef __USE_MISC\n /* Add an action changing the directory to PATH during spawn.  This\n    affects the subsequent file actions.  */\ndiff --git a/posix/spawn_faction_addchdir.c b/posix/spawn_faction_addchdir.c\nindex 02f8ce27ee..dadb8a27e0 100644\n--- a/posix/spawn_faction_addchdir.c\n+++ b/posix/spawn_faction_addchdir.c\n@@ -51,3 +51,6 @@ posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *file_actions,\n \n   return 0;\n }\n+\n+strong_alias (posix_spawn_file_actions_addchdir_np,\n+              posix_spawn_file_actions_addchdir)\ndiff --git a/posix/spawn_faction_addfchdir.c b/posix/spawn_faction_addfchdir.c\nindex a3df6df489..7056993d62 100644\n--- a/posix/spawn_faction_addfchdir.c\n+++ b/posix/spawn_faction_addfchdir.c\n@@ -44,3 +44,6 @@ posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *actions,\n \n   return 0;\n }\n+\n+strong_alias (posix_spawn_file_actions_addfchdir_np,\n+              posix_spawn_file_actions_addfchdir)\ndiff --git a/posix/tst-spawn-chdir.c b/posix/tst-spawn-chdir.c\nindex a3478d61f6..c85465c973 100644\n--- a/posix/tst-spawn-chdir.c\n+++ b/posix/tst-spawn-chdir.c\n@@ -72,18 +72,31 @@ get_pwd_program (void)\n    the open function and TMPFD to emulate chdir using fchdir.  */\n static void\n add_chdir (posix_spawn_file_actions_t *actions, const char *path,\n-           bool do_fchdir, int tmpfd)\n+           bool do_fchdir, bool do_posix, int tmpfd)\n {\n   if (do_fchdir)\n     {\n       TEST_COMPARE (posix_spawn_file_actions_addopen\n                     (actions, tmpfd, path, O_DIRECTORY | O_RDONLY, 0), 0);\n-      TEST_COMPARE (posix_spawn_file_actions_addfchdir_np\n-                    (actions, tmpfd), 0);\n+      if (do_posix)\n+        {\n+          TEST_COMPARE (posix_spawn_file_actions_addfchdir\n+                        (actions, tmpfd), 0);\n+\t}\n+      else\n+\t{\n+          TEST_COMPARE (posix_spawn_file_actions_addfchdir_np\n+                        (actions, tmpfd), 0);\n+\t}\n       TEST_COMPARE (posix_spawn_file_actions_addclose (actions, tmpfd), 0);\n     }\n   else\n-    TEST_COMPARE (posix_spawn_file_actions_addchdir_np (actions, path), 0);\n+    {\n+      if (do_posix)\n+        TEST_COMPARE (posix_spawn_file_actions_addchdir (actions, path), 0);\n+      else\n+\tTEST_COMPARE (posix_spawn_file_actions_addchdir_np (actions, path), 0);\n+    }\n }\n \n static int\n@@ -110,109 +123,110 @@ do_test (void)\n   for (int do_spawnp = 0; do_spawnp < 2; ++do_spawnp)\n     for (int do_overwrite = 0; do_overwrite < 2; ++do_overwrite)\n       for (int do_fchdir = 0; do_fchdir < 2; ++do_fchdir)\n-        {\n-          /* This subtest does not make sense for fchdir.  */\n-          if (do_overwrite && do_fchdir)\n-            continue;\n-\n-          ++iteration;\n-          if (test_verbose > 0)\n-            printf (\"info: iteration=%d do_spawnp=%d do_overwrite=%d\"\n-                    \" do_fchdir=%d\\n\",\n-                    iteration, do_spawnp, do_overwrite, do_fchdir);\n-\n-          /* The \"pwd\" program runs in this directory.  */\n-          char *iteration_directory = xasprintf (\"%s/%d\", directory, iteration);\n-          add_temp_file (iteration_directory);\n-          xmkdir (iteration_directory, 0777);\n-\n-          /* This file receives output from \"pwd\".  */\n-          char *output_file_path\n-            = xasprintf (\"%s/output-file\", iteration_directory);\n-          add_temp_file (output_file_path);\n-\n-          /* This subdirectory is used for chdir ordering checks.  */\n-          char *subdir_path = xasprintf (\"%s/subdir\", iteration_directory);\n-          add_temp_file (subdir_path);\n-          xmkdir (subdir_path, 0777);\n-\n-          /* Also used for checking the order of actions.  */\n-          char *probe_file_path\n-            = xasprintf (\"%s/subdir/probe-file\", iteration_directory);\n-          add_temp_file (probe_file_path);\n-          TEST_COMPARE (access (probe_file_path, F_OK), -1);\n-          TEST_COMPARE (errno, ENOENT);\n-\n-          /* This symbolic link is used in a relative path with\n-             posix_spawn.  */\n-          char *pwd_symlink_path\n-            = xasprintf (\"%s/subdir/pwd-symlink\", iteration_directory);\n-          xsymlink (get_pwd_program (), pwd_symlink_path);\n-          add_temp_file (pwd_symlink_path);\n-\n-          posix_spawn_file_actions_t actions;\n-          TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0);\n-          add_chdir (&actions, subdir_path, do_fchdir, 4);\n-          TEST_COMPARE (posix_spawn_file_actions_addopen\n-                        (&actions, 3, /* Arbitrary unused descriptor.  */\n-                         \"probe-file\",\n-                         O_WRONLY | O_CREAT | O_EXCL, 0666), 0);\n-          TEST_COMPARE (posix_spawn_file_actions_addclose (&actions, 3), 0);\n-          /* Run the actual in iteration_directory.  */\n-          add_chdir (&actions, \"..\", do_fchdir, 5);\n-          TEST_COMPARE (posix_spawn_file_actions_addopen\n-                        (&actions, STDOUT_FILENO, \"output-file\",\n-                         O_WRONLY | O_CREAT | O_EXCL, 0666), 0);\n-\n-          /* Check that posix_spawn_file_actions_addchdir_np made a copy\n-             of the path.  */\n-          if (do_overwrite)\n-            subdir_path[0] = '\\0';\n-\n-          char *const argv[] = { (char *) \"pwd\", NULL };\n-          char *const envp[] = { NULL } ;\n-          PID_T_TYPE pid;\n-          if (do_spawnp)\n-            TEST_COMPARE (POSIX_SPAWNP (&pid, \"pwd\", &actions,\n-                                        NULL, argv, envp), 0);\n-          else\n-            TEST_COMPARE (POSIX_SPAWN (&pid, \"subdir/pwd-symlink\", &actions,\n-                                       NULL, argv, envp), 0);\n-          TEST_VERIFY (pid > 0);\n-          siginfo_t sinfo;\n-          TEST_COMPARE (WAITID (P_ALL, 0, &sinfo, WEXITED), 0);\n-          TEST_COMPARE (sinfo.si_code, CLD_EXITED);\n-          TEST_COMPARE (sinfo.si_status, 0);\n-\n-          /* Check that the current directory did not change.  */\n-          {\n-            char *cwd = get_current_dir_name ();\n-            if (cwd == NULL)\n-              FAIL_EXIT1 (\"get_current_dir_name: %m\");\n-            TEST_COMPARE_BLOB (original_cwd, strlen (original_cwd),\n-                               cwd, strlen (cwd));\n-            free (cwd);\n-          }\n-\n-\n-          /* Check the output from \"pwd\".  */\n+\tfor (int do_posix = 0; do_posix < 2; ++do_posix)\n           {\n-            char *pwd = read_one_line (output_file_path);\n-            TEST_COMPARE_BLOB (iteration_directory, strlen (iteration_directory),\n-                               pwd, strlen (pwd));\n-            free (pwd);\n+            /* This subtest does not make sense for fchdir.  */\n+            if (do_overwrite && do_fchdir)\n+              continue;\n+\n+            ++iteration;\n+            if (test_verbose > 0)\n+              printf (\"info: iteration=%d do_spawnp=%d do_overwrite=%d\"\n+                      \" do_fchdir=%d do_posix=%d\\n\",\n+                      iteration, do_spawnp, do_overwrite, do_fchdir, do_posix);\n+\n+            /* The \"pwd\" program runs in this directory.  */\n+            char *iteration_directory = xasprintf (\"%s/%d\", directory, iteration);\n+            add_temp_file (iteration_directory);\n+            xmkdir (iteration_directory, 0777);\n+\n+            /* This file receives output from \"pwd\".  */\n+            char *output_file_path\n+              = xasprintf (\"%s/output-file\", iteration_directory);\n+            add_temp_file (output_file_path);\n+\n+            /* This subdirectory is used for chdir ordering checks.  */\n+            char *subdir_path = xasprintf (\"%s/subdir\", iteration_directory);\n+            add_temp_file (subdir_path);\n+            xmkdir (subdir_path, 0777);\n+\n+            /* Also used for checking the order of actions.  */\n+            char *probe_file_path\n+              = xasprintf (\"%s/subdir/probe-file\", iteration_directory);\n+            add_temp_file (probe_file_path);\n+            TEST_COMPARE (access (probe_file_path, F_OK), -1);\n+            TEST_COMPARE (errno, ENOENT);\n+\n+            /* This symbolic link is used in a relative path with\n+               posix_spawn.  */\n+            char *pwd_symlink_path\n+              = xasprintf (\"%s/subdir/pwd-symlink\", iteration_directory);\n+            xsymlink (get_pwd_program (), pwd_symlink_path);\n+            add_temp_file (pwd_symlink_path);\n+\n+            posix_spawn_file_actions_t actions;\n+            TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0);\n+            add_chdir (&actions, subdir_path, do_fchdir, do_posix, 4);\n+            TEST_COMPARE (posix_spawn_file_actions_addopen\n+                          (&actions, 3, /* Arbitrary unused descriptor.  */\n+                           \"probe-file\",\n+                           O_WRONLY | O_CREAT | O_EXCL, 0666), 0);\n+            TEST_COMPARE (posix_spawn_file_actions_addclose (&actions, 3), 0);\n+            /* Run the actual in iteration_directory.  */\n+            add_chdir (&actions, \"..\", do_fchdir, do_posix, 5);\n+            TEST_COMPARE (posix_spawn_file_actions_addopen\n+                          (&actions, STDOUT_FILENO, \"output-file\",\n+                           O_WRONLY | O_CREAT | O_EXCL, 0666), 0);\n+\n+            /* Check that posix_spawn_file_actions_addchdir_np made a copy\n+               of the path.  */\n+            if (do_overwrite)\n+              subdir_path[0] = '\\0';\n+\n+            char *const argv[] = { (char *) \"pwd\", NULL };\n+            char *const envp[] = { NULL } ;\n+            PID_T_TYPE pid;\n+            if (do_spawnp)\n+              TEST_COMPARE (POSIX_SPAWNP (&pid, \"pwd\", &actions,\n+                                          NULL, argv, envp), 0);\n+            else\n+              TEST_COMPARE (POSIX_SPAWN (&pid, \"subdir/pwd-symlink\", &actions,\n+                                         NULL, argv, envp), 0);\n+            TEST_VERIFY (pid > 0);\n+            siginfo_t sinfo;\n+            TEST_COMPARE (WAITID (P_ALL, 0, &sinfo, WEXITED), 0);\n+            TEST_COMPARE (sinfo.si_code, CLD_EXITED);\n+            TEST_COMPARE (sinfo.si_status, 0);\n+\n+            /* Check that the current directory did not change.  */\n+            {\n+              char *cwd = get_current_dir_name ();\n+              if (cwd == NULL)\n+                FAIL_EXIT1 (\"get_current_dir_name: %m\");\n+              TEST_COMPARE_BLOB (original_cwd, strlen (original_cwd),\n+                                 cwd, strlen (cwd));\n+              free (cwd);\n+            }\n+\n+\n+            /* Check the output from \"pwd\".  */\n+            {\n+              char *pwd = read_one_line (output_file_path);\n+              TEST_COMPARE_BLOB (iteration_directory, strlen (iteration_directory),\n+                                 pwd, strlen (pwd));\n+              free (pwd);\n+            }\n+\n+            /* This file must now exist.  */\n+            TEST_COMPARE (access (probe_file_path, F_OK), 0);\n+\n+            TEST_COMPARE (posix_spawn_file_actions_destroy (&actions), 0);\n+            free (pwd_symlink_path);\n+            free (probe_file_path);\n+            free (subdir_path);\n+            free (output_file_path);\n           }\n \n-          /* This file must now exist.  */\n-          TEST_COMPARE (access (probe_file_path, F_OK), 0);\n-\n-          TEST_COMPARE (posix_spawn_file_actions_destroy (&actions), 0);\n-          free (pwd_symlink_path);\n-          free (probe_file_path);\n-          free (subdir_path);\n-          free (output_file_path);\n-        }\n-\n   free (directory);\n \n   return 0;\ndiff --git a/sysdeps/unix/sysv/linux/x86_64/64/libc.abilist b/sysdeps/unix/sysv/linux/x86_64/64/libc.abilist\nindex 306cd627fd..3c42d9526d 100644\n--- a/sysdeps/unix/sysv/linux/x86_64/64/libc.abilist\n+++ b/sysdeps/unix/sysv/linux/x86_64/64/libc.abilist\n@@ -2771,6 +2771,8 @@ GLIBC_2.43 memset_explicit F\n GLIBC_2.43 mseal F\n GLIBC_2.43 openat2 F\n GLIBC_2.43 umaxabs F\n+GLIBC_2.44 posix_spawn_file_actions_addchdir F\n+GLIBC_2.44 posix_spawn_file_actions_addfchdir F\n GLIBC_2.5 __readlinkat_chk F\n GLIBC_2.5 inet6_opt_append F\n GLIBC_2.5 inet6_opt_find F\n",
    "prefixes": [
        "1/1"
    ]
}