pacman/lib/libalpm
Dan McGee 4b7f7e2a59 Correctly use the fd returned my mkstemp()
There were a few issues with this code:
1. We already had an open fd to a file, but never used it to our benefit.
   Use the libarchive convienence method to write the current file contents
   straight to a file descriptor.
2. The real problem cropped up on Windows where the locking semantics caused
   the old way of extraction to fail because we had an open file descriptor.
   By using the file descriptor and closing it ASAP, we prevent these
   failures.

Signed-off-by: Dan McGee <dan@archlinux.org>
2008-04-08 18:55:22 -05:00
..
po Update Czech translation 2008-03-04 23:05:43 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Correctly use the fd returned my mkstemp() 2008-04-08 18:55:22 -05:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm.c New alpm_version function 2008-03-06 19:05:14 -06:00
alpm.h New alpm_version function 2008-03-06 19:05:14 -06:00
alpm_list.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
backup.c memleak fix: ensure backup fname isn't lost if unused 2008-03-23 16:55:52 -05:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Ensure DESC infolevel is loaded before checking pkg->filename 2008-02-13 22:52:53 -06:00
cache.c Remove gettext calls from debug-level messages 2008-01-01 20:03:24 -06:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c ensure chk_fileconflicts reads entire file list 2008-02-11 20:40:43 -06:00
conflict.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
db.c Change the versioned provision format. 2008-01-14 22:03:03 -06:00
db.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
delta.c Fix memory leak in shortest_delta_path. 2007-12-21 11:08:05 -06:00
delta.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
deps.c Remove a bogus comment 2008-03-04 06:40:32 -06:00
deps.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
handle.c Set handle->logstream to null after fclose() 2008-04-01 18:08:58 -05:00
handle.h Remove upgradedelay and all code associated with it 2008-01-08 15:49:52 -06:00
log.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Remove provide.c and provide.h . 2007-11-17 09:50:05 -06:00
md5.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
md5.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
package.c Set a missing pm_errno in _alpm_pkg_load() 2008-03-01 15:57:59 -06:00
package.h Fix library interface 2008-01-11 08:43:10 -06:00
remove.c Use pkgcache instead of db_scan in remove.c 2008-03-28 17:53:04 -05:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c libalpm/sync.c : fix poorly worded debug message. 2008-02-25 00:30:21 +01:00
sync.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
trans.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
trans.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
util.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
util.h FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00