[Bug 3575] New: wrong usage message: "-Q protocol_feature" is an invalid query type
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat May 27 03:18:50 AEST 2023
https://bugzilla.mindrot.org/show_bug.cgi?id=3575
Bug ID: 3575
Summary: wrong usage message: "-Q protocol_feature" is an
invalid query type
Product: Portable OpenSSH
Version: 9.2p1
Hardware: Other
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: sftp-server
Assignee: unassigned-bugs at mindrot.org
Reporter: max at mx17.net
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":
case 'Q':
if (strcasecmp(optarg, "requests") != 0) {
fprintf(stderr, "Invalid query type\n");
exit(1);
}
The incorrect usage parameter in the executable's message can cause
confusion and frustration for users trying to utilize the tool.
Please let me know if you need any further information or
clarification.
Thank you for your time.
Max
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list