]> sourceware.org Git - systemtap.git/commitdiff
Initialize euid before using it.
authorDave Brolley <brolley@redhat.com>
Tue, 5 May 2009 18:35:52 +0000 (14:35 -0400)
committerDave Brolley <brolley@redhat.com>
Tue, 5 May 2009 18:35:52 +0000 (14:35 -0400)
modsign.cxx

index 435fec123451b55e4e1172a5389022d9a5174de6..e7d02fba279bd4e1ac6020225cab8a41009325ed 100644 (file)
@@ -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)
This page took 0.027796 seconds and 5 git commands to generate.