summaryrefslogtreecommitdiffstats
path: root/modsign.cxx
diff options
context:
space:
mode:
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 435fec12..e7d02fba 100644
--- a/modsign.cxx
+++ b/modsign.cxx
@@ -219,8 +219,8 @@ 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 ();
+ pw = getpwuid (euid);
if (info.st_uid != euid)
{
if (pw)