a python bug (afaic) makes this screw up the permissionson TMPTMPTMP:
a python bug (afaic) makes this screw up the permissionson TMPTMPTMP:

    import os

    fd = os.open("TMPTMPTMP", os.O_CREAT | os.O_RDWR)
    os.chmod("TMPTMPTMP", 04755)

    f = os.fdopen(fd, "w")
    f.write("FOO")

this patch makes sure we reset the file permissions after writing out the
contents. dumb, but w/o it setuid files get lost.

fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary