summaryrefslogtreecommitdiffstats
path: root/package/tar/tar-remote-shell.patch
blob: 962da2e10d8d2b6b8fb6d8e03fa1a08f72ec36de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- tar.broke/src/tar.c.orig	2004-10-10 21:39:07.872276960 -0400
+++ tar/src/tar.c	2004-10-10 21:39:52.512490616 -0400
@@ -544,10 +544,18 @@
 show_default_settings (FILE *stream)
 {
   fprintf (stream,
-	   "--format=%s -f%s -b%d --rmt-command=%s --rsh-command=%s\n",
+	   "--format=%s -f%s -b%d --rmt-command=%s"
+#ifdef REMOTE_SHELL
+" --rsh-command=%s"
+#endif
+	   "\n",
 	   archive_format_string (DEFAULT_ARCHIVE_FORMAT),
 	   DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
-	   DEFAULT_RMT_COMMAND, REMOTE_SHELL);
+	   DEFAULT_RMT_COMMAND
+#ifdef REMOTE_SHELL
+	   ,REMOTE_SHELL
+#endif
+	   );
 }
 
 static void