~ubuntu-branches/ubuntu/trusty/policycoreutils/trusty-proposed

« back to all changes in this revision

Viewing changes to run_init/open_init_pty.c

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2009-10-14 02:08:04 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091014020804-u45uxbr54c4mdyre
Tags: 2.0.74-1
* New upstream point release
  + Change semodule upgrade behavior to install even if the module
  + is not present from Dan Walsh.
  + Make setfiles label if selinux is disabled and a seclabel aware
  + kernel is running from Caleb Case.
  + Clarify forkpty() error message in run_init from Manoj Srivastava.
  + Add semanage dontaudit to turn off dontaudits from Dan Walsh.
  + Fix semanage to set correct mode for setrans file from Dan Walsh.
  + Fix malformed dictionary in portRecord from Dan Walsh.
* Added patch from Martin Orr to fix a loop in the inotify watch code
  when installing a watch on utmp.
* [863fb62]: topic--debian: Improve error messages on forkpty failure
  The current error message when forkpty() fails is not clear or
  useful. The following patch makes indicate what went wrong. 
  Bug fix: "The error message on forkpty() failure is not clear or
  useful.", thanks to Russell Coker              (Closes: #515710).

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        }
154
154
 
155
155
        if (child_pid < 0) {
156
 
                perror("Fork:");
 
156
                perror("forkpty():");
157
157
                fflush(stdout);
158
158
                fflush(stderr);
159
159
                exit(EX_OSERR);
162
162
                /* in the child */
163
163
                struct termios s_tty_attr;
164
164
                if (tcgetattr(fileno(stdin), &s_tty_attr)) {
165
 
                        perror("Child:");
 
165
                        perror("forkpty child:");
166
166
                        fflush(stdout);
167
167
                        fflush(stderr);
168
168
                        exit(EXIT_FAILURE);