From 6274b0767474fd4f159f7aaccc800d4d6feb1ee6 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:58:12 +0200 Subject: [PATCH] Fix things I broke --- src/dnsd/main.rs | 2 +- src/smolnetd/main.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/dnsd/main.rs b/src/dnsd/main.rs index 41ce75854e..6b44f2817f 100644 --- a/src/dnsd/main.rs +++ b/src/dnsd/main.rs @@ -16,7 +16,7 @@ mod scheme; fn run(daemon: redox_daemon::Daemon) -> Result<()> { use libredox::flag::*; - let dns_fd = Fd::open("/scheme/dns", O_RDWR | O_CREAT | O_NONBLOCK, 0) + let dns_fd = Fd::open(":dns", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :dns")?; let time_path = format!("/scheme/time/{}", CLOCK_MONOTONIC); diff --git a/src/smolnetd/main.rs b/src/smolnetd/main.rs index 1e41dab4c7..d937c0383d 100644 --- a/src/smolnetd/main.rs +++ b/src/smolnetd/main.rs @@ -71,24 +71,24 @@ fn run(daemon: redox_daemon::Daemon) -> Result<()> { .map(|mac_address| EthernetAddress::from_bytes(&mac_address)) .context("failed to get mac address from network adapter")?; - trace!("opening /scheme/ip"); - let ip_fd = Fd::open("/scheme/ip", O_RDWR | O_CREAT | O_NONBLOCK, 0) + trace!("opening :ip"); + let ip_fd = Fd::open(":ip", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :ip")?; - trace!("opening /scheme/udp"); - let udp_fd = Fd::open("/scheme/udp", O_RDWR | O_CREAT | O_NONBLOCK, 0) + trace!("opening :udp"); + let udp_fd = Fd::open(":udp", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :udp")?; - trace!("opening /scheme/tcp"); - let tcp_fd = Fd::open("/scheme/tcp", O_RDWR | O_CREAT | O_NONBLOCK, 0) + trace!("opening :tcp"); + let tcp_fd = Fd::open(":tcp", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :tcp")?; - trace!("opening /scheme/icmp"); - let icmp_fd = Fd::open("/scheme/icmp", O_RDWR | O_CREAT | O_NONBLOCK, 0) + trace!("opening :icmp"); + let icmp_fd = Fd::open(":icmp", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :icmp")?; - trace!("opening /scheme/netcfg"); - let netcfg_fd = Fd::open("/scheme/netcfg", O_RDWR | O_CREAT | O_NONBLOCK, 0) + trace!("opening :netcfg"); + let netcfg_fd = Fd::open(":netcfg", O_RDWR | O_CREAT | O_NONBLOCK, 0) .context("failed to open :netcfg")?; let time_path = format!("/scheme/time/{}", syscall::CLOCK_MONOTONIC);