Bug 3513 - The help document of scp misses some options
Summary: The help document of scp misses some options
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 9.1p1
Hardware: All All
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-27 23:04 AEDT by 陈孟达
Modified: 2023-03-17 13:40 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 陈孟达 2022-12-27 23:04:18 AEDT
The "--help" option of scp misses the option "d" and "f" and "t". 

1) For the option "d", the following code appears during option parsing and modifies the targetshouldbedirectory in scp.c:567 for version 9.1p1.

			targetshouldbedirectory = 1;
			break;

2) For the option "f", the following code appears during option parsing and modifies the iamremote, fflag in scp.c:570-571 for version 9.1p1.

			iamremote = 1;
			fflag = 1;
			break;

3) For the option "t", the following code appears during option parsing and modifies the iamremote, tflag in scp.c:574-575 for version 9.1p1.

			iamremote = 1;
			tflag = 1;
#ifdef HAVE_CYGWIN
			setmode(0, O_BINARY);
#endif
			break;

But they do not appear in the document provided by "--help".

Although they are both accessibility options, it may prevent users from using the relevant function.
Comment 1 Damien Miller 2023-01-13 13:10:10 AEDT
These options are only used internally by scp and are not intended for humans to use directly.
Comment 2 Damien Miller 2023-03-17 13:40:05 AEDT
OpenSSH 9.3 has been released. Close resolved bugs