summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 "