parent
66f2ed1341
commit
edd6960fe5
18
tcsh-6.17.00-dont-set-empty-remotehost.patch
Normal file
18
tcsh-6.17.00-dont-set-empty-remotehost.patch
Normal file
@ -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));
|
||||||
|
}
|
@ -28,8 +28,10 @@ Patch16: tcsh-6.17.00-printexitvalue.patch
|
|||||||
Patch17: tcsh-6.17.00-testsuite.patch
|
Patch17: tcsh-6.17.00-testsuite.patch
|
||||||
# Accepted by upstream:
|
# Accepted by upstream:
|
||||||
Patch18: tcsh-6.17.00-extrafork.patch
|
Patch18: tcsh-6.17.00-extrafork.patch
|
||||||
# Proposed to upstream: http://bugs.gw.com/view.php?id=109
|
# Proposed to upstream (http://bugs.gw.com/view.php?id=109):
|
||||||
Patch19: tcsh-6.17.00-wait-intr.patch
|
Patch19: tcsh-6.17.00-wait-intr.patch
|
||||||
|
# Accepted by upstream (tcsh-6.17.02b http://bugs.gw.com/view.php?id=112):
|
||||||
|
Patch21: tcsh-6.17.00-dont-set-empty-remotehost.patch
|
||||||
Provides: csh = %{version}
|
Provides: csh = %{version}
|
||||||
Requires(post): grep
|
Requires(post): grep
|
||||||
Requires(postun): coreutils, grep
|
Requires(postun): coreutils, grep
|
||||||
@ -64,6 +66,7 @@ like syntax.
|
|||||||
%patch17 -p1 -b .testsuite
|
%patch17 -p1 -b .testsuite
|
||||||
%patch18 -p1 -b .extrafork
|
%patch18 -p1 -b .extrafork
|
||||||
%patch19 -p1 -b .wait-intr
|
%patch19 -p1 -b .wait-intr
|
||||||
|
%patch21 -p1 -b .dont-set-empty-remotehost
|
||||||
|
|
||||||
for i in Fixes WishList; do
|
for i in Fixes WishList; do
|
||||||
iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \
|
iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \
|
||||||
@ -137,9 +140,10 @@ fi
|
|||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Dec 21 2010 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-10
|
|
||||||
- Make wait builtin command interruptible
|
- Make wait builtin command interruptible
|
||||||
Resolves: #440465
|
Resolves: #440465
|
||||||
|
- Don't set $REMOTEHOST on the local machine
|
||||||
|
Resolves: #669176
|
||||||
|
|
||||||
* Wed Oct 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-9
|
* Wed Oct 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-9
|
||||||
- Remove fork when tcsh processes backquotes
|
- Remove fork when tcsh processes backquotes
|
||||||
|
Loading…
Reference in New Issue
Block a user