~ubuntu-branches/ubuntu/trusty/expect/trusty

« back to all changes in this revision

Viewing changes to debian/patches/fd3

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-10-01 22:23:00 UTC
  • mfrom: (2.1.7 edgy)
  • Revision ID: james.westby@ubuntu.com-20061001222300-08nd1wqc92mxggdq
Tags: 5.43.0-8
* Added patch from Niko Tyni <ntyni@iki.fi> to fix static library name on
  alpha, mips and mipsel (Closes: #390366).
* Added *.so symlink (Closes: #390365).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: exp_clib.c
2
 
===================================================================
3
 
RCS file: /usr/local/cvs/debian/expect/exp_clib.c,v
4
 
retrieving revision 1.5
5
 
diff -u -r1.5 exp_clib.c
6
 
--- exp_clib.c  17 Aug 2004 07:09:41 -0000      1.5
7
 
+++ exp_clib.c  17 Aug 2004 08:30:46 -0000
8
 
@@ -2500,6 +2500,7 @@
9
 
 
10
 
        /* save error fd while we're setting up new one */
11
 
        errorfd = fcntl(2,F_DUPFD,3);
12
 
+       fcntl(3, F_SETFD, FD_CLOEXEC);
13
 
        /* and here is the macro to restore it */
14
 
 #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);}
15
 
 
16
 
Index: exp_command.c
17
 
===================================================================
18
 
RCS file: /usr/local/cvs/debian/expect/exp_command.c,v
19
 
retrieving revision 1.9
20
 
diff -u -r1.9 exp_command.c
21
 
--- exp_command.c       17 Aug 2004 07:20:43 -0000      1.9
22
 
+++ exp_command.c       17 Aug 2004 08:30:46 -0000
23
 
@@ -1042,6 +1042,7 @@
24
 
 
25
 
        /* save error fd while we're setting up new one */
26
 
        errorfd = fcntl(2,F_DUPFD,3);
27
 
+       fcntl(3, F_SETFD, FD_CLOEXEC);
28
 
        /* and here is the macro to restore it */
29
 
 #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);}
30