[Glibc-bsd-commits] r5442 - in trunk/ufsutils/debian: . patches

rmh at alioth.debian.org rmh at alioth.debian.org
Sat Feb 22 14:34:01 UTC 2014


Author: rmh
Date: 2014-02-22 14:34:01 +0000 (Sat, 22 Feb 2014)
New Revision: 5442

Added:
   trunk/ufsutils/debian/patches/operator_gid.diff
Modified:
   trunk/ufsutils/debian/changelog
   trunk/ufsutils/debian/patches/series
Log:
Silence "operator gid" warning.

Modified: trunk/ufsutils/debian/changelog
===================================================================
--- trunk/ufsutils/debian/changelog	2014-02-22 13:21:21 UTC (rev 5441)
+++ trunk/ufsutils/debian/changelog	2014-02-22 14:34:01 UTC (rev 5442)
@@ -3,6 +3,7 @@
   * 05_wipe_otherfs.patch: Handle DIOCGMEDIASIZE failure gracefully.
     (Closes: #737580)
   * Fix fsck.ufs exit codes. (Closes: #355134)
+  * Silence "operator gid" warning.
 
  -- Robert Millan <rmh at debian.org>  Sat, 22 Feb 2014 14:02:36 +0100
 

Added: trunk/ufsutils/debian/patches/operator_gid.diff
===================================================================
--- trunk/ufsutils/debian/patches/operator_gid.diff	                        (rev 0)
+++ trunk/ufsutils/debian/patches/operator_gid.diff	2014-02-22 14:34:01 UTC (rev 5442)
@@ -0,0 +1,15 @@
+--- a/sbin/newfs/mkfs.c
++++ b/sbin/newfs/mkfs.c
+@@ -856,12 +856,7 @@
+ 	int entries;
+ 
+ 	memset(&node, 0, sizeof node);
+-	if ((grp = getgrnam("operator")) != NULL) {
+-		gid = grp->gr_gid;
+-	} else {
+-		warnx("Cannot retrieve operator gid, using gid 0.");
+ 		gid = 0;
+-	}
+ 	entries = (nflag) ? ROOTLINKCNT - 1: ROOTLINKCNT;
+ 	if (sblock.fs_magic == FS_UFS1_MAGIC) {
+ 		/*

Modified: trunk/ufsutils/debian/patches/series
===================================================================
--- trunk/ufsutils/debian/patches/series	2014-02-22 13:21:21 UTC (rev 5441)
+++ trunk/ufsutils/debian/patches/series	2014-02-22 14:34:01 UTC (rev 5442)
@@ -9,4 +9,5 @@
 # Patches that are likely to be Debian-specific
 exit_codes.diff
 04_avoid_diocgdelete.patch
+operator_gid.diff
 makefiles.diff




More information about the Glibc-bsd-commits mailing list