Bug 3513

Summary: The help document of scp misses some options
Product: Portable OpenSSH Reporter: 陈孟达 <chenmengda2009>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: normal CC: djm
Priority: P5    
Version: 9.1p1   
Hardware: All   
OS: All   

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