aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent/agent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/agent/agent.cxx')
-rw-r--r--bbot/agent/agent.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index 80eeae5..2c4e03e 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -93,9 +93,9 @@ inline void
run_btrfs (tracer& t, A&&... a)
{
if (verb >= 4)
- run_io (t, fdnull (), 2, 2, "btrfs", forward<A> (a)...);
+ run_io (t, fdopen_null (), 2, 2, "btrfs", forward<A> (a)...);
else
- run_io (t, fdnull (), fdnull (), 2, "btrfs", forward<A> (a)...);
+ run_io (t, fdopen_null (), fdopen_null (), 2, "btrfs", forward<A> (a)...);
}
template <typename... A>
@@ -103,8 +103,10 @@ inline butl::process_exit::code_type
btrfs_exit (tracer& t, A&&... a)
{
return verb >= 4
- ? run_io_exit (t, fdnull (), 2, 2, "btrfs", forward<A> (a)...)
- : run_io_exit (t, fdnull (), fdnull (), 2, "btrfs", forward<A> (a)...);
+ ? run_io_exit (t, fdopen_null (), 2, 2, "btrfs", forward<A> (a)...)
+ : run_io_exit (t,
+ fdopen_null (), fdopen_null (), 2,
+ "btrfs", forward<A> (a)...);
}
// Bootstrap the machine. Return the bootstrapped machine manifest if
@@ -1194,7 +1196,7 @@ try
throw_generic_error (ENOENT);
openssl os (trace,
- ops.auth_key (), path ("-"), fdnull (),
+ ops.auth_key (), path ("-"), fdopen_null (),
ops.openssl (), "rsa",
ops.openssl_option (), "-pubout", "-outform", "DER");