summaryrefslogtreecommitdiffstats
path: root/modsign.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-05 14:29:22 -0400
committerDave Brolley <brolley@redhat.com>2009-05-05 14:29:22 -0400
commit307fbce1d6243d9a347491454a79646d97c53782 (patch)
treefb1cc179736aaababa68960621aaf087e4eba267 /modsign.cxx
parent7c4e9d57761b10058d36756df3b39039e292812d (diff)
downloadsystemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.tar.gz
systemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.tar.xz
systemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.zip
Make sure pw struct is initialized.
Diffstat (limited to 'modsign.cxx')
-rw-r--r--modsign.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/modsign.cxx b/modsign.cxx
index b66497fd..d8b9901e 100644
--- a/modsign.cxx
+++ b/modsign.cxx
@@ -218,10 +218,10 @@ check_cert_db_permissions (const string &cert_db_path) {
rc = 1; // ok
// We must be the owner of the database.
+ pw = getpwuid (euid);
euid = geteuid ();
if (info.st_uid != euid)
{
- pw = getpwuid (euid);
if (pw)
{
cerr << "Certificate database " << cert_db_path << " must be owned by "