rpm/lib
Andreas Schwab 4102effba5 Don't lose errno from rpmPackageFilesInstall
There are a lot of ways to lose the value of errno after a failed
rpmPackageFilesInstall.  Typically, stdio will call isatty which then
overwrites errno with ENOTTY.  Save and restore errno between the return
from rpmPackageFilesInstall and the logging of the error.  There may be
more opportunities inside rpmPackageFilesInstall to clobber the real
errno which I haven't investigated yet.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2013-08-15 07:40:17 +03:00
..
backend Serialize BDB environment open/close (RhBug:924417 etc) 2013-05-28 09:13:08 +03:00
.gitignore build: Update .gitignore rules 2011-10-11 12:55:15 +03:00
Makefile.am Separate the external plugin API to its own header 2013-04-03 11:42:04 +03:00
cpio.c Move magic out of the cpio header 2013-06-18 09:37:23 +02:00
cpio.h Move more cpio internals out of the header 2013-06-18 09:37:23 +02:00
depends.c Initialize plugins much earlier 2013-04-03 16:53:12 +03:00
formats.c Report config and missinok flags in deptype format extension too 2012-07-11 15:10:08 +03:00
fprint.c Simplify fpLookupSubdir() a bit 2012-09-28 12:43:39 +03:00
fprint.h Allow passing a shared pool for finger print cache 2012-09-14 14:21:10 +03:00
fsm.c Make reading the cpio header a function 2013-06-18 09:37:23 +02:00
fsm.h Eliminate rpmts and rpmte kludgery from package building 2012-04-24 14:28:03 +03:00
gentagtbl.sh Use actual enum values in tag table sentinel to avoid int/enum mismatch 2010-09-21 15:26:25 +03:00
header.c Spelling fixes. 2013-02-19 21:35:40 +02:00
header.h Implement "fast" flag to headerImport() 2011-11-30 11:59:35 +02:00
header_internal.h Handle partial reads and errors in package IO (RhBug:802839, RhBug:580974) 2012-10-30 11:36:56 +02:00
headerfmt.c Handle query format field width centrally in formatValue() 2011-08-17 10:59:49 +03:00
headerutil.c Eliminate dead NULL-assignments at scope-end in librpm, part I 2011-05-28 22:24:20 +03:00
legacy.c Remove unused xx error code variable 2011-03-04 12:45:06 +02:00
manifest.c Avoid freeing an unallocated variable (RhBug:688091) 2011-03-16 15:07:55 +01:00
manifest.h Drop bogus const from rpmReadPackageManifest argvptr 2007-12-18 12:53:57 +02:00
misc.h Handle query format field width centrally in formatValue() 2011-08-17 10:59:49 +03:00
order.c Switch back to early added packages rpmal populating 2012-09-24 11:57:55 +03:00
package.c Add mutex protection around stashKeyid() static variables 2013-02-15 13:18:18 +02:00
poptALL.c Error out on more than one --pipe option (RhBug:966093) 2013-05-23 12:45:08 +03:00
poptI.c Add scriptlet-specific disablers for %pretrans and %posttrans 2013-04-10 11:40:13 +03:00
poptQV.c Add cli-switch to query for license files 2012-11-08 10:28:01 +02:00
psm.c Don't lose errno from rpmPackageFilesInstall 2013-08-15 07:40:17 +03:00
query.c Make "now" non-static, there's no need for it to be that way 2013-02-19 17:59:40 +02:00
rpmal.c Add a hash + lookup function on obsoletes to rpmal 2012-10-05 11:35:11 +03:00
rpmal.h Add a hash + lookup function on obsoletes to rpmal 2012-10-05 11:35:11 +03:00
rpmcallback.h Add enum for RPMCALLBACK_INST_STOP callback event 2012-01-05 16:05:10 +02:00
rpmchecksig.c Fix missing error on --import on bogus key file (RhBug:869667) 2012-10-30 09:29:46 +02:00
rpmchroot.c Add an error message + comments on open(".") behavior (RhBug:672576) 2011-01-28 13:19:53 +02:00
rpmchroot.h Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
rpmcli.h Add cli-switch to query for license files 2012-11-08 10:28:01 +02:00
rpmdb.c Use unified tag to index function for both add and removal 2013-04-23 13:30:41 +03:00
rpmdb.h Fix rpmdbAppendIterator() argument signedness 2013-03-26 16:22:17 +02:00
rpmdb_internal.h Remove pointless rpmdbSync() function 2013-04-19 18:43:49 +03:00
rpmds.c Make rpmdsMerge() return something meaningful 2013-04-15 18:13:46 +03:00
rpmds.h Export the pool-aware rpmds constructors 2013-04-16 07:42:04 +03:00
rpmds_internal.h Export the pool-aware rpmds constructors 2013-04-16 07:42:04 +03:00
rpmfi.c Ensure relocatable packages always get install-prefix(es) set (RhBug:979443) 2013-07-05 10:33:13 +03:00
rpmfi.h Export the pool-aware rpmfi constructor 2013-06-07 11:38:07 +03:00
rpmfi_internal.h Add support for 64bit sizes to rpmfi[SG]etFReplacedSizeIndex 2013-06-18 09:37:23 +02:00
rpmfs.c Eliminate header and rpmte knowledge from rpmfs 2012-04-24 13:36:38 +03:00
rpmfs.h Eliminate header and rpmte knowledge from rpmfs 2012-04-24 13:36:38 +03:00
rpmgi.c rpmgiFree() cleanup to remove an exit point and dead assignment(s) 2011-05-30 12:37:06 +03:00
rpmgi.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
rpmhash.C Missing <stdio.h> include for fprintf() 2012-09-07 10:27:08 +03:00
rpmhash.H Add alternative hash key add/get/check methods with prehashed key 2012-09-05 10:38:36 +03:00
rpminstall.c Avoid double iteration on 'rpm -e' now that iterator count works 2012-09-06 10:48:51 +03:00
rpmlead.c Handle partial reads and errors in package IO (RhBug:802839, RhBug:580974) 2012-10-30 11:36:56 +02:00
rpmlead.h Further streamline & sanitize lead handling 2011-07-07 11:55:28 +03:00
rpmlegacy.h Change all the legacy interfaces to use the "concrete" integer tag types 2010-10-22 10:01:33 +03:00
rpmlib.h rpmbuild: warn if header color differs from color of the package architecture. 2012-03-30 13:55:03 +02:00
rpmliblua.c Add lua 5.2 support. 2012-10-09 08:28:52 +03:00
rpmliblua.h Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
rpmlock.c Make rpm locks reference counted to allow nested locking 2013-03-11 11:58:07 +02:00
rpmlock.h Export rpmlock release method internally as well 2013-03-11 11:12:35 +02:00
rpmplugin.h Drop now redundant name and opts arguments to plugin init hook 2013-04-03 12:39:51 +03:00
rpmplugins.c Tolerate NULL passed to rpmpluginsFree() 2013-04-03 14:32:24 +03:00
rpmplugins.h Separate the external plugin API to its own header 2013-04-03 11:42:04 +03:00
rpmpol.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
rpmprob.c Don't bother checking for rasprintf() return codes in rpmProblemString() 2011-03-04 14:43:54 +02:00
rpmprob.h Spelling fixes. 2013-02-19 21:35:40 +02:00
rpmps.c Fix couple of incorrect sizeof() uses 2011-03-17 14:08:54 +02:00
rpmps.h Eliminate all fooUnlink() functions out of the API 2010-09-13 13:08:33 +03:00
rpmrc.c Use getauxval(3) to read auxv data 2013-07-02 12:43:53 +03:00
rpmscript.c Eliminate built-in selinux support. RIP. 2013-03-21 13:56:33 +02:00
rpmscript.h Eliminate built-in selinux support. RIP. 2013-03-21 13:56:33 +02:00
rpmtag.h Fix RPMTAG_NOSOURCE and NOPATCH tag types, they are arrays (RhBug:991329) 2013-08-02 10:36:44 +03:00
rpmtd.c Rename td2pool as rpmtdToPool, export and optimize 2012-09-11 08:16:07 +03:00
rpmtd.h Rename td2pool as rpmtdToPool, export and optimize 2012-09-11 08:16:07 +03:00
rpmte.c Ensure relocatable packages always get install-prefix(es) set (RhBug:979443) 2013-07-05 10:33:13 +03:00
rpmte.h Switch rpmte API and internals to use rpmTagVal instead of rpmTag 2010-10-22 11:31:36 +03:00
rpmte_internal.h Make rpmteHaveTransScript() available internally 2012-08-24 08:51:01 +03:00
rpmts.c Lazy allocation of plugins container 2013-04-03 14:57:03 +03:00
rpmts.h Add scriptlet-specific disablers for %pretrans and %posttrans 2013-04-10 11:40:13 +03:00
rpmts_internal.h Initialize plugins much earlier 2013-04-03 16:53:12 +03:00
rpmtypes.h Make plugins into separately allocated "objects", step 1 2013-03-28 15:13:18 +02:00
rpmug.c Move string hash function to librpmio and rename for namespacing 2011-03-10 10:17:39 +02:00
rpmug.h Add a "unique string cache" to rpmug 2010-12-16 09:31:20 +02:00
rpmvercmp.c Spelling fixes. 2013-02-19 21:35:40 +02:00
rpmvf.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
signature.c Clarify the zero-padding "buffer" use in rpmWriteSignature() 2013-02-19 18:13:23 +02:00
signature.h Eliminate uses of pgpDig in package reading & signature checking 2011-11-09 13:44:31 +02:00
tagexts.c Test for file data tag sanity in fnTag() extensions 2012-02-21 16:24:18 +02:00
tagname.c Further simplify tag lookup table initialization 2013-02-19 10:07:14 +02:00
transaction.c Remove pointless rpmdbSync() function 2013-04-19 18:43:49 +03:00
verify.c Report replaced files in verification 2013-04-12 12:40:37 +03:00