summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);