SCP copies only one file

ptmusta
2013-09-23
2015-05-05
  • ptmusta
    ptmusta
    2013-09-23

    Our system has been running for years until our Linux server crashed. We installed a new server but did not touch the client.
    Now SCP can copy one file per time but only one.

    Ideas ?

     
  • Jeff Evans
    Jeff Evans
    2015-05-05

    I came across this very useful tool when looking for a better way than ftp to transfer files to old dos boxen.
    Unfortunately, on all the servers I tried scp would only copy one file at a time when globbing.
    Upon closer inspection I found that scpdos.c was not expecting the filenames to be null delimited.
    See the attached patch (hack :-) which fixes the issue. Additionally, using [.,.] and {.,.} expansions should also now work.

     
    Attachments