[Bug 3575] wrong usage message: "-Q protocol_feature" is an invalid query type
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Mon May 29 13:33:33 AEST 2023
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=3575
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at dtucker.net
--- Comment #1 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Max Chinni from comment #0)
> When running the executable /usr/lib/openssh/sftp-server, there is
> an issue with the displayed message of the usage parameter "-Q".
> 
>     # /usr/lib/openssh/sftp-server -h
>     usage: sftp-server [-ehR] [-d start_directory] [-f log_facility]
> [-l log_level]
>             [-P denied_requests] [-p allowed_requests] [-u umask]
>            sftp-server -Q protocol_feature
>     # /usr/lib/openssh/sftp-server -Q protocol_feature
>     Invalid query type
> 
> I think "-Q" supports only "requests":
Correct.  Quoting sftp-server(8):
     -Q protocol_feature
             Queries protocol features supported by sftp-server.  At
present
             the only feature that may be queried is "requests", which
may be
             used to deny or allow specific requests (flags -P and -p
             respectively).
> The incorrect usage parameter in the executable's message can cause
> confusion and frustration for users trying to utilize the tool.
protocol_feature is not intended as a literal, it's a placeholder for
the correct argument same as the other options that take an argument
listed in the usage.
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list