[Bug 959] enhancement: supporting a remote scp path option in scp

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Dec 4 02:36:15 EST 2004


http://bugzilla.mindrot.org/show_bug.cgi?id=959

           Summary: enhancement: supporting a remote scp path option in scp
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: scp
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: dlssh at leach.net.au


I've written some enhancements to scp.c and pathnames.h to enable the scp
to arbitrarily set the remote scp path.
(eg $ scp -e /usr/bin/scp foo user at bar:foo)

I did read the "scp: command not found" FAQ entry but I'm not quite sure
why we can't do this, unless it's because enhancements to scp are no
longer a priority.  Any other reason why it "is the way it is" other than
that?

The patch is below, all I've really done is replaced char cmd[CMDNEEDS]
with char *rspcmd throughout.  Forgive any dodgy coding, I'm not a
developer during the day :).  I haven't been able to test the patch below
because I don't have a handy openbsd box, I have tested a patch under the
portable version that seems to work fine.  Let me know if I'm better off
providing that.

My reason for wanting is that it means server side scripts that wrap
around forced commands can tie scp down to the absolute path. 
Incidentally, if there is a reason why anyone thinks this is a bad idea,
please let me know.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list