Author: Matti Picus <[email protected]>
Branch: 
Changeset: r55075:a2c909726db5
Date: 2012-05-14 00:35 +0300
http://bitbucket.org/pypy/pypy/changeset/a2c909726db5/

Log:    umask does not operate on a fd

diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -1544,9 +1544,8 @@
     def register_os_umask(self):
         os_umask = self.llexternal(underscore_on_windows+'umask', 
[rffi.MODE_T], rffi.MODE_T)
 
-        def umask_llimpl(fd):
-            rposix.validate_fd(fd)
-            res = os_umask(rffi.cast(rffi.MODE_T, fd))
+        def umask_llimpl(newmask):
+            res = os_umask(rffi.cast(rffi.MODE_T, newmask))
             return rffi.cast(lltype.Signed, res)
 
         return extdef([int], int, llimpl=umask_llimpl,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to