commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 12/36: Fix test for term open mode


From: Samuel Thibault
Subject: [hurd] 12/36: Fix test for term open mode
Date: Tue, 24 Sep 2013 12:31:14 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 23b32a7beec41fd8c8eae20b221c1cb2b536f345
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:30:18 2013 +0200

    Fix test for term open mode
    
    * term/users.c (S_term_open_ctty): Properly test for `openmodes` containing
    at least O_READ or O_WRITE.
---
 term/users.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/term/users.c b/term/users.c
index 529693e..e51c111 100644
--- a/term/users.c
+++ b/term/users.c
@@ -438,7 +438,7 @@ S_term_open_ctty (mach_port_t arg,
 
   pthread_mutex_lock (&global_lock);
 
-  if (!cred->po->openmodes & (O_READ|O_WRITE))
+  if (!(cred->po->openmodes & (O_READ|O_WRITE)))
     {
       pthread_mutex_unlock (&global_lock);
       err = EBADF;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]