Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
Subject: CVSROOT commit in /: checkgroup.pl
Date: Wed, 17 Sep 2008 21:35:51 +0000
robbat2     08/09/17 21:35:51

  Modified:             checkgroup.pl
  Log:
  Add group name.

Revision  Changes    Path
1.3                  checkgroup.pl

file : http://sources.gentoo.org/viewcvs.py/CVSROOT/checkgroup.pl?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/CVSROOT/checkgroup.pl?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/CVSROOT/checkgroup.pl?r1=1.2&r2=1.3

Index: checkgroup.pl
===================================================================
RCS file: /var/cvsroot/CVSROOT/checkgroup.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -p -w -b -B -u -u -r1.2 -r1.3
--- checkgroup.pl	17 Sep 2008 21:34:40 -0000	1.2
+++ checkgroup.pl	17 Sep 2008 21:35:50 -0000	1.3
@@ -13,7 +13,8 @@ foreach(@ARGV) {
 	print STDERR $filepath."\n";
 	-f $filepath or die "$filepath does not exist.";
 	my $sb = stat($filepath);
-	printf "File is %s, size is %s, perm %04o, mtime %s, gid %s\n",
+	my $group = getgrgid($sb->gid);
+	printf "File is %s, size is %s, perm %04o, mtime %s, group %s\n",
 		   $filepath, $sb->size, $sb->mode & 07777,
-		   scalar localtime $sb->mtime, $sb->gid;
+		   scalar localtime $sb->mtime, $group;
 }





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
CVSROOT commit in /: checkgroup.pl
Next by thread:
CVSROOT commit in /: checkgroup.pl
Previous by date:
CVSROOT commit in /: checkgroup.pl
Next by date:
gentoo-x86 commit in dev-java/tomcat-servlet-api: tomcat-servlet-api-5.5.27.ebuild ChangeLog


Updated Apr 29, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.