~ubuntu-branches/debian/jessie/ufsutils/jessie

« back to all changes in this revision

Viewing changes to debian/patches/operator_gid.diff

  • Committer: Package Import Robot
  • Author(s): Robert Millan
  • Date: 2014-05-22 18:05:36 UTC
  • mfrom: (11.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20140522180536-nsmuhw6ryv9awr88
Tags: 10.0-3
Fix FTBFS due to missing <libutil.h> by adding a libutil-freebsd-dev
build-dep (Closes: #741088). Thanks Cyril Brulebois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/sbin/newfs/mkfs.c
 
2
+++ b/sbin/newfs/mkfs.c
 
3
@@ -856,12 +856,7 @@
 
4
        int entries;
 
5
 
 
6
        memset(&node, 0, sizeof node);
 
7
-       if ((grp = getgrnam("operator")) != NULL) {
 
8
-               gid = grp->gr_gid;
 
9
-       } else {
 
10
-               warnx("Cannot retrieve operator gid, using gid 0.");
 
11
                gid = 0;
 
12
-       }
 
13
        entries = (nflag) ? ROOTLINKCNT - 1: ROOTLINKCNT;
 
14
        if (sblock.fs_magic == FS_UFS1_MAGIC) {
 
15
                /*