Skip to contentSkip to conversation

Patch to fix newrole/more problem where more fails because terminal is not open correctly

PATCH Daniel J Walsh 2 participants 2 messages Dec 11, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw
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
diff --exclude-from=exclude --exclude POTFILES.in --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/newrole/newrole.c policycoreutils-1.33.6/newrole/newrole.c
@@ -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.

#1 lore raw
Quoted 10 lines · Daniel J Walsh

diff --exclude-from=exclude --exclude POTFILES.in --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/newrole/newrole.c policycoreutils-1.33.6/newrole/newrole.c
--- nsapolicycoreutils/newrole/newrole.c 2006-11-29
17:11:18.000000000 -0500
+++ policycoreutils-1.33.6/newrole/newrole.c 2006-12-08
10:34:48.000000000 -0500

newrole/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 -2
               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.