From 307fbce1d6243d9a347491454a79646d97c53782 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 5 May 2009 14:29:22 -0400 Subject: Make sure pw struct is initialized. --- modsign.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modsign.cxx') 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 " -- cgit