summaryrefslogtreecommitdiffstats
path: root/modsign.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-05 14:35:52 -0400
committerDave Brolley <brolley@redhat.com>2009-05-05 14:35:52 -0400
commit04cba3b870c1fed6ce8f62e3eb0288a7f1abd071 (patch)
tree5d90792a21683724dcf90f4842b7ffee6d3ef032 /modsign.cxx
parent60f6c990f8cfde6377e1e41757ef48f45f9365c4 (diff)
downloadsystemtap-steved-04cba3b870c1fed6ce8f62e3eb0288a7f1abd071.tar.gz
systemtap-steved-04cba3b870c1fed6ce8f62e3eb0288a7f1abd071.tar.xz
systemtap-steved-04cba3b870c1fed6ce8f62e3eb0288a7f1abd071.zip
Initialize euid before using it.
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)