summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-15 06:52:28 +0000
committermidipix <writeonce@midipix.org>2021-04-15 09:44:27 +0000
commitff9a9037501a2277122bd508ba22581955313f34 (patch)
tree1662d9e32aa1e6d648b8fef0a7af5419a5f3db0b /src
parent289362ba17bd52e09116b69aa269c3eb73917caf (diff)
downloadslibtool-ff9a9037501a2277122bd508ba22581955313f34.tar.bz2
slibtool-ff9a9037501a2277122bd508ba22581955313f34.tar.xz
library: replace all uses of open() with openat().
Diffstat (limited to 'src')
-rw-r--r--src/helper/slbt_dump_machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c
index 0640a07..1576b60 100644
--- a/src/helper/slbt_dump_machine.c
+++ b/src/helper/slbt_dump_machine.c
@@ -34,7 +34,7 @@ static void slbt_dump_machine_child(
argv[1] = "-dumpmachine";
argv[2] = 0;
- if ((fd[0] = open("/dev/null",O_RDONLY)) >= 0)
+ if ((fd[0] = openat(AT_FDCWD,"/dev/null",O_RDONLY,0)) >= 0)
if (dup2(fd[0],0) == 0)
if (dup2(fd[1],1) == 1)
execvp(program,argv);