diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-05-18 05:08:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 05:08:22 +0000 |
commit | bb4afb2d10582d7b5d27e3e01d2f316ab3d31ffc (patch) | |
tree | 02519193e2ab5e52ef24fbb530e08c188b502b66 /src/args.rs | |
parent | Merge pull request #801 from svenstaro/run-clippy-only-on-nightly (diff) | |
parent | Fix security issue with --no-symlinks (diff) | |
download | miniserve-bb4afb2d10582d7b5d27e3e01d2f316ab3d31ffc.tar.gz miniserve-bb4afb2d10582d7b5d27e3e01d2f316ab3d31ffc.zip |
Merge pull request #802 from svenstaro/fix-symlink-following
Fix security issue with --no-symlinks
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs index 7667bee..757fd22 100644 --- a/src/args.rs +++ b/src/args.rs @@ -75,7 +75,7 @@ pub struct CliArgs { #[clap(long = "random-route", conflicts_with("route-prefix"))] pub random_route: bool, - /// Do not follow symbolic links + /// Hide symlinks in listing and prevent them from being followed #[clap(short = 'P', long = "no-symlinks")] pub no_symlinks: bool, @@ -160,7 +160,7 @@ pub struct CliArgs { )] pub header: Vec<HeaderMap>, - /// Show symlink info + /// Visualize symlinks in directory listing #[clap(short = 'l', long = "show-symlink-info")] pub show_symlink_info: bool, |