about summary refs log tree commit diff
path: root/src/sysdeps
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-29 07:55:12 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-29 07:55:12 +0000
commit109417b5defcd6d13c54b213c4f06272fcf0dc19 (patch)
tree2d6085bfeb560bd3c13386974a7b65ed8693c926 /src/sysdeps
parent28e09b5eb76919122f8baf57899154b3dd5fdaa0 (diff)
downloadskalibs-109417b5defcd6d13c54b213c4f06272fcf0dc19.tar.gz
skalibs-109417b5defcd6d13c54b213c4f06272fcf0dc19.tar.xz
skalibs-109417b5defcd6d13c54b213c4f06272fcf0dc19.zip
posix_spawn workaround fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sysdeps')
-rw-r--r--src/sysdeps/tryposixspawnearlyreturn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdeps/tryposixspawnearlyreturn.c b/src/sysdeps/tryposixspawnearlyreturn.c
index 347f2be..b6f5179 100644
--- a/src/sysdeps/tryposixspawnearlyreturn.c
+++ b/src/sysdeps/tryposixspawnearlyreturn.c
@@ -19,6 +19,6 @@ int main (void)
   e = posix_spawnattr_setflags(&attr, 0) ;
   if (e) return 111 ;
   if (close(fd) == -1 || unlink(tmp) == -1) return 111 ;
-  e = posix_spawn(0, argv[0], 0, &attrp, argv, &env) ;
+  e = posix_spawn(0, argv[0], 0, &attr, argv, &env) ;
   return e ? e == ENOENT ? 1 : 111 : 0 ;
 }