Commits

mattip committed 2626cba

minimal change to call validate_fd in app_posix.py 's fdopen()

  • Participants
  • Parent commits b972b2e
  • Branches win32-cleanup2

Comments (0)

Files changed (1)

pypy/rlib/streamio.py

     # XXX XXX XXX you want do check whether the modes are compatible
     # otherwise you get funny results
     os_flags, universal, reading, writing, basemode, binary = decode_mode(mode)
+    rposix.validate_fd(fd)
     _setfd_binary(fd)
     stream = DiskFile(fd)
     return construct_stream_tower(stream, buffering, universal, reading,