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

« back to all changes in this revision

Viewing changes to debian/patches/11-ttyname.patch

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2011-08-17 21:50:29 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110817215029-0cfarscc630tfc5v
Tags: 5.45-1
* New upstream release.
* Removed unnecessary patches.
* Removed the expectk package because expectk was dropped from the upstream
  distribution. See NEWS.Debian for possible workarounds.
* Updated package to standards version 3.9.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 Check before call ttyname, so don't coredump in chroots without /proc
4
4
 (Closes: #440804).
5
5
 
6
 
--- expect-5.44.1.15.orig/pty_termios.c
7
 
+++ expect-5.44.1.15/pty_termios.c
8
 
@@ -366,6 +366,17 @@
 
6
--- expect-5.45.orig/pty_termios.c
 
7
+++ expect-5.45/pty_termios.c
 
8
@@ -369,6 +369,17 @@
9
9
 #define W_OK 02
10
10
 #endif
11
11
 
23
23
 int
24
24
 exp_getptymaster()
25
25
 {
26
 
@@ -451,7 +462,7 @@
 
26
@@ -454,7 +465,7 @@
27
27
        master = open("/dev/ptc",O_RDWR);
28
28
        if (master >= 0) {
29
29
                /* never fails */
32
32
        }
33
33
        exp_pty_slave_name = slave_name;
34
34
        return(master);
35
 
@@ -472,7 +483,7 @@
 
35
@@ -475,7 +486,7 @@
36
36
                close(slave);
37
37
                return -1;
38
38
        }