[Bug 3513] New: The help document of scp misses some options

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Dec 27 23:04:18 AEDT 2022


https://bugzilla.mindrot.org/show_bug.cgi?id=3513

            Bug ID: 3513
           Summary: The help document of scp misses some options
           Product: Portable OpenSSH
           Version: 9.1p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: security
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: chenmengda2009 at 163.com

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.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list