diff options
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 |