summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-23 12:41:38 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-23 12:41:38 +0200
commit9f43fee26bc982945926d74d27844e5dbc829d70 (patch)
tree37470fa700d616205dc6010d0a38db782c98560b /lib
parentc47b96630c18143be25cc0a4c42c7f8005d18a5d (diff)
downloadlibrpm-tizen-9f43fee26bc982945926d74d27844e5dbc829d70.tar.gz
librpm-tizen-9f43fee26bc982945926d74d27844e5dbc829d70.tar.bz2
librpm-tizen-9f43fee26bc982945926d74d27844e5dbc829d70.zip
Move getpass() portability tweaks out of system.h
- only signature.c needs, no need to pollute system.h
Diffstat (limited to 'lib')
-rw-r--r--lib/signature.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 7d50db7a5..030eb8ceb 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -25,6 +25,11 @@
char ** environ = NULL;
#endif
+/* Solaris <= 2.6 limits getpass return to only 8 chars */
+#if HAVE_GETPASSPHRASE
+#define getpass getpassphrase
+#endif
+
static int sighdrPut(Header h, rpmSigTag tag, rpmTagType type,
rpm_data_t p, rpm_count_t c)
{