mirror of
https://github.com/sigoden/dufs.git
synced 2026-06-07 23:16:54 +03:00
[GH-ISSUE #703] Unconditional use of getifaddrs
#5943
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @myzhang1029 on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/sigoden/dufs/issues/703
Issue:
src/main.rs:214usesgetifaddrsunconditionally, even when the input is a fully resolved local address, or a unix domain socket path.This is a bit inconvenient when trying to secure
dufswith things like systemd and seccomp becausegetifaddrsrequiresAF_NETLINK.Solution if possible: can we move the call to inside the
ip.is_unspecifiedbranch? I can work on this and make a PR if it sounds good.@sigoden commented on GitHub (May 15, 2026):
Sorry for the late response, I welcome you to submit a PR.