Patch to fix newrole/more problem where more fails because terminal is not open correctly
newrole/newrole.c 2006-12-08 10:34:48.000000000 -0500 renamed from newrole/newrole.c 2006-11-29 17:11:18.000000000 -0500 +2 -2
@@ -1120,10 +1120,10 @@ fd = open(ttyn, O_RDONLY); if (fd != 0) goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 1) goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 2) goto err_close_pam;
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Karl MacMillan
Acked-byQuoted 10 lines · Daniel J Walsh
diff --exclude-from=exclude --exclude POTFILES.in --exclude='*.po' --exclude='*.pot' -N -u -r
nsapolicycoreutils/newrole/newrole.cpolicycoreutils-1.33.6/newrole/newrole.c
---nsapolicycoreutils/newrole/newrole.c2006-11-29
17:11:18.000000000 -0500
+++policycoreutils-1.33.6/newrole/newrole.c2006-12-08
10:34:48.000000000 -0500newrole/newrole.c 2006-12-08 10:34:48.000000000 -0500 renamed from newrole/newrole.c 2006-11-29 17:11:18.000000000 -0500 +0
-0@@ -1120,10 +1120,10 @@ fd = open(ttyn, O_RDONLY); if (fd != 0)
newrole/newrole.c 2006-12-08 10:34:48.000000000 -0500 line 1129
Quoted 10 lines
newrole/newrole.c 2006-12-08 10:34:48.000000000 -0500 renamed from newrole/newrole.c 2006-11-29 17:11:18.000000000 -0500 +2
-2goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 1) goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 2) goto err_close_pam;
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.