Source-Changes-HG archive

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

[src/trunk]: src/etc Rename the 'gpio' group to '_gpio' as new group names sh...



details:   https://anonhg.NetBSD.org/src/rev/e1012cb0d743
branches:  trunk
changeset: 786905:e1012cb0d743
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Mon May 20 11:37:02 2013 +0000

description:
Rename the 'gpio' group to '_gpio' as new group names should start with an
underscore.  While here, fix the awk script to properly expand such group
names.

diffstat:

 etc/MAKEDEV.awk  |  6 +++---
 etc/MAKEDEV.tmpl |  4 ++--
 etc/group        |  2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 7bb75e2fd4cc -r e1012cb0d743 etc/MAKEDEV.awk
--- a/etc/MAKEDEV.awk   Mon May 20 10:24:26 2013 +0000
+++ b/etc/MAKEDEV.awk   Mon May 20 11:37:02 2013 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/awk -
 #
-#      $NetBSD: MAKEDEV.awk,v 1.23 2013/04/14 13:47:37 skrll Exp $
+#      $NetBSD: MAKEDEV.awk,v 1.24 2013/05/20 11:37:02 mbalmer Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -211,7 +211,7 @@
        print "# Generated from:"
 
        # MAKEDEV.awk (this script) RCS Id
-       ARCSID = "$NetBSD: MAKEDEV.awk,v 1.23 2013/04/14 13:47:37 skrll Exp $"
+       ARCSID = "$NetBSD: MAKEDEV.awk,v 1.24 2013/05/20 11:37:02 mbalmer Exp $"
        gsub(/\$/, "", ARCSID)
        print "#        " ARCSID
        
@@ -264,7 +264,7 @@
        sub(/%CONSOLE_CMAJOR%/, CONSOLE_CMAJOR)
        parsed = ""
        line = $0
-       while (match(line, /%[gu]id_[a-z]*%/)) {
+       while (match(line, /%[gu]id_[_a-z]*%/)) {
                typ = substr(line, RSTART + 1, 3);
                nam = substr(line, RSTART + 5, RLENGTH - 6);
                if (typ == "uid") {
diff -r 7bb75e2fd4cc -r e1012cb0d743 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Mon May 20 10:24:26 2013 +0000
+++ b/etc/MAKEDEV.tmpl  Mon May 20 11:37:02 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.169 2013/05/19 16:09:04 mbalmer Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.170 2013/05/20 11:37:02 mbalmer Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -496,7 +496,7 @@
 
        u_root="%uid_root%"
        u_uucp="%uid_uucp%"
-       g_gpio="%gid_gpio%"
+       g_gpio="%gid__gpio%"
        g_kmem="%gid_kmem%"
        g_ntpd="%gid_ntpd%"
        g_operator="%gid_operator%"
diff -r 7bb75e2fd4cc -r e1012cb0d743 etc/group
--- a/etc/group Mon May 20 10:24:26 2013 +0000
+++ b/etc/group Mon May 20 11:37:02 2013 +0000
@@ -30,5 +30,5 @@
 authpf:*:72:
 users:*:100:
 dialer:*:117:
-gpio:*:118:
+_gpio:*:118:
 nogroup:*:32766:



Home | Main Index | Thread Index | Old Index