aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tftpd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tftpd.rs b/src/tftpd.rs
index ae719de..5ff4a54 100644
--- a/src/tftpd.rs
+++ b/src/tftpd.rs
@@ -276,7 +276,7 @@ impl Tftpd {
};
let restrict = || -> Result<RestrictionStatus, RulesetError> {
- landlock::Ruleset::new()
+ landlock::Ruleset::default()
.handle_access(access_all)?
.create()?
.add_rule(PathBeneath::new(pathfd, access))?