aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-02-24 16:04:37 +0000
committerWerner Koch <[email protected]>2004-02-24 16:04:37 +0000
commit7164a0f7540c12dd8e4c808231091e0b5676b4aa (patch)
tree70d082eb57ba451b29d90942be2fe6613aa277cc
parent* options.h, g10.c (main), trustdb.c (mark_usable_uid_certs): Add (diff)
downloadgnupg-7164a0f7540c12dd8e4c808231091e0b5676b4aa.tar.gz
gnupg-7164a0f7540c12dd8e4c808231091e0b5676b4aa.zip
* secmem.c (lock_pool) [_AIX]: Also set errno.
-rw-r--r--util/ChangeLog4
-rw-r--r--util/secmem.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index dfe03337b..08c999ee3 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-24 Werner Koch <[email protected]>
+
+ * secmem.c (lock_pool) [_AIX]: Also set errno.
+
2004-01-13 David Shaw <[email protected]>
* argparse.c (initialize): Avoid a number of -Wformat-nonliteral
diff --git a/util/secmem.c b/util/secmem.c
index e1ec6c93c..dda84202a 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -138,7 +138,8 @@ lock_pool( void *p, size_t n )
processes are clogging up the memory. To get this problem out
of the way we simply don't try to lock the memory at all.
*/
- err = EPERM;
+ errno = EPERM;
+ err = errno;
# else /*!_AIX*/
err = plock( DATLOCK );
if( err && errno )