diff options
author | Dave Brolley <brolley@redhat.com> | 2009-05-05 14:29:22 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-05-05 14:29:22 -0400 |
commit | 307fbce1d6243d9a347491454a79646d97c53782 (patch) | |
tree | fb1cc179736aaababa68960621aaf087e4eba267 | |
parent | 7c4e9d57761b10058d36756df3b39039e292812d (diff) | |
download | systemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.tar.gz systemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.tar.xz systemtap-steved-307fbce1d6243d9a347491454a79646d97c53782.zip |
Make sure pw struct is initialized.
-rw-r--r-- | modsign.cxx | 2 |
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 " |