Changeset 3456 for trunk


Ignore:
Timestamp:
Jun 16, 2007, 8:01:39 PM (18 years ago)
Author:
bird
Message:

hack to prevent passing an empty environment to execve. (fixme later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-apps/portage/pym/portage_exec.py

    r3455 r3456  
    323323                os.umask(umask)
    324324
     325        # bird: hack. OS/2 and kLIBC dislike empty environments. (FIXME)
     326        if len(env) == 0 and sys.platform == "os2knix":
     327                env = os.environ.copy()
     328
    325329        # And switch to the new process.
    326330        os.execve(binary, myargs, env)
Note: See TracChangeset for help on using the changeset viewer.