From 04cba3b870c1fed6ce8f62e3eb0288a7f1abd071 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 5 May 2009 14:35:52 -0400 Subject: Initialize euid before using it. --- modsign.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modsign.cxx') 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) -- cgit