diff options
author | Vojtech Vitek (V-Teq) <vvitek@redhat.com> | 2011-01-24 16:16:20 +0100 |
---|---|---|
committer | Vojtech Vitek (V-Teq) <vvitek@redhat.com> | 2011-01-24 16:16:41 +0100 |
commit | edd6960fe5c0dff10af7dc90d112df368594b190 (patch) | |
tree | 777dca450c729c13bf66866cf1d9f635f3193b9e /tcsh-6.17.00-dont-set-empty-remotehost.patch | |
parent | 66f2ed1341a8370b6fb087e481ef34510daacadb (diff) | |
download | tcsh-rebase-6.19.00-edd6960fe5c0dff10af7dc90d112df368594b190.tar.gz tcsh-rebase-6.19.00-edd6960fe5c0dff10af7dc90d112df368594b190.tar.xz tcsh-rebase-6.19.00-edd6960fe5c0dff10af7dc90d112df368594b190.zip |
- Don't set $REMOTEHOST on the local machine
Resolves: #669176
Diffstat (limited to 'tcsh-6.17.00-dont-set-empty-remotehost.patch')
-rw-r--r-- | tcsh-6.17.00-dont-set-empty-remotehost.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tcsh-6.17.00-dont-set-empty-remotehost.patch b/tcsh-6.17.00-dont-set-empty-remotehost.patch new file mode 100644 index 0000000..8fa96c8 --- /dev/null +++ b/tcsh-6.17.00-dont-set-empty-remotehost.patch @@ -0,0 +1,18 @@ +--- tcsh-6.17.00-orig/tc.func.c 2009-06-25 23:15:38.000000000 +0200 ++++ tcsh-6.17.00/tc.func.c 2011-01-14 12:48:54.959051220 +0100 +@@ -2025,12 +2025,13 @@ remotehost(void) + } + wait_options = 0; + done: ++ cleanup_push(&hostname, strbuf_cleanup); + xclose(fds[0]); + while ((wait_res = waitpid(pid, &status, wait_options)) == -1 + && errno == EINTR) + handle_pending_signals(); +- cleanup_push(&hostname, strbuf_cleanup); +- if (wait_res == pid && WIFEXITED(status) && WEXITSTATUS(status) == 0) { ++ if (hostname.len > 0 && wait_res == pid && WIFEXITED(status) ++ && WEXITSTATUS(status) == 0) { + strbuf_terminate(&hostname); + tsetenv(STRREMOTEHOST, str2short(hostname.s)); + } |