Use mkstemp() when creating temporary packfiles.
Use mkstemp() when creating temporary packfiles.

Using getpid() was an okay hack, but there's no good excuse for doing it
that way when there are perfectly good tempfile-naming functions around
already.

tjanez/bup,jbaber/bup,pombredanne/bup,tjanez/bup,apenwarr/bup,ToxicFrog/bup,mhoeher/bup,pombredanne/bup,apenwarr/bup,mhoeher/bup,tjanez/bup,jbaber/bup,ToxicFrog/bup,ToxicFrog/bup,tjanez/bup,mhoeher/bup,tjanez/bup,ToxicFrog/bup,jbaber/bup,pombredanne/bup,apenwarr/bup,gevaerts/bup,gevaerts/bup,mhoeher/bup,gevaerts/bup,mhoeher/bup,jbaber/bup,ToxicFrog/bup,gevaerts/bup,gevaerts/bup,pombredanne/bup,apenwarr/bup,pombredanne/bup,mhoeher/bup,jbaber/bup,jbaber/bup,pombredanne/bup,tjanez/bup