home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / security / ylonen-ssh / rsync-ssh-transport-only.patch < prev    next >
Text File  |  2000-06-02  |  568b  |  27 lines

  1. The stock rsync utility defaults to rsh transport, such that one must
  2. specify ssh transport via a command-line option.  The source patch
  3. below alters rsync.h to hard-code selection of ssh transport, instead.
  4.  
  5.  
  6.  
  7. *** rsync.h-original    Fri Jun  2 17:05:54 2000
  8. --- rsync.h     Fri Jun  2 17:06:15 2000
  9. ***************
  10. *** 70,78 ****
  11.   #include "config.h"
  12.   
  13. ! #if HAVE_REMSH
  14. ! #define RSYNC_RSH "remsh"
  15. ! #else
  16. ! #define RSYNC_RSH "rsh"
  17. ! #endif
  18.   
  19.   #include <sys/types.h>
  20. --- 70,74 ----
  21.   #include "config.h"
  22.   
  23. ! #define RSYNC_RSH "ssh"
  24.   
  25.   #include <sys/types.h>
  26.  
  27.