[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 02/03: L::C::B: Explicitly mark uid/gid as integers



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 31b5dbf6ef0198761634aadbe5fc9a9977cab255
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jan 7 12:47:57 2017 +0000

    L::C::B: Explicitly mark uid/gid as integers
    
    Should make them slightly cheaper in the rare cases where people have
    non-root ids.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/Collect/Package.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index 6014ab8..e0eaa0d 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -470,10 +470,10 @@ sub _fetch_index_data {
             # Memory-optimise for 0/0.  Perl has an insane overhead
             # for each field, so this is sadly worth it!
             if ($uid) {
-                $file{'uid'} = $uid;
+                $file{'uid'} = int($uid);
             }
             if ($gid) {
-                $file{'gid'} = $gid;
+                $file{'gid'} = int($gid);
             }
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: