diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-21 09:36:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-21 09:36:42 +0200 |
commit | 660734e039951385122709527ce09c300b0b6b68 (patch) | |
tree | 8c810e2bb19316de428c8e8680ad5562549ad95b /bbot/agent/tftp.cxx | |
parent | 87a366098031e8818441f6d18e4e5dcb33a6d0e7 (diff) |
Adjust to auto_rm changes
Diffstat (limited to 'bbot/agent/tftp.cxx')
-rw-r--r-- | bbot/agent/tftp.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bbot/agent/tftp.cxx b/bbot/agent/tftp.cxx index 27c1577..05ca157 100644 --- a/bbot/agent/tftp.cxx +++ b/bbot/agent/tftp.cxx @@ -46,7 +46,7 @@ namespace bbot // Create the map file. // map_ = auto_rmfile (path::temp_path ("bbot-agent-tftp-map")); - ofdstream ofs (map_.path ()); + ofdstream ofs (map_.path); ofs << map << endl; ofs.close (); } @@ -115,14 +115,14 @@ namespace bbot fddup (fd), fddup (fd), 2, - "sudo", // Required for --secure (chroot). - "/usr/sbin/in.tftpd", // Standard installation location. - "--timeout", 1, // Wait for more requests. - "--permissive", // Use inherited umask. - "--create", // Allow creating new files (PUT). - "--map-file", map_.path (), // Path remapping rules. - "--user", uname, // Run as our effective user. - "--secure", // Chroot to data directory. + "sudo", // Required for --secure (chroot). + "/usr/sbin/in.tftpd", // Standard installation location. + "--timeout", 1, // Wait for more requests. + "--permissive", // Use inherited umask. + "--create", // Allow creating new files (PUT). + "--map-file", map_.path, // Path remapping rules. + "--user", uname, // Run as our effective user. + "--secure", // Chroot to data directory. ops.tftp ()); // This is not really accurate since tftpd will, for example, serve |