Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Implicitly define attribute for filesystem.



details:   https://anonhg.NetBSD.org/src/rev/cfee41d2141b
branches:  trunk
changeset: 332809:cfee41d2141b
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Oct 10 07:08:26 2014 +0000

description:
Implicitly define attribute for filesystem.

diffstat:

 usr.bin/config/main.c |  9 ++++++++-
 usr.bin/config/sem.c  |  4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r d34022158e93 -r cfee41d2141b usr.bin/config/main.c
--- a/usr.bin/config/main.c     Fri Oct 10 06:59:38 2014 +0000
+++ b/usr.bin/config/main.c     Fri Oct 10 07:08:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.58 2014/10/09 19:20:56 uebayasi Exp $       */
+/*     $NetBSD: main.c,v 1.59 2014/10/10 07:08:26 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -698,6 +698,13 @@
                            nv->nv_name);
 
                add_fs_dependencies(nv, deps);
+
+               /*
+                * Implicit attribute definition for filesystem.
+                */
+               const char *n; 
+               n = strtolower(nv->nv_name);
+               refattr(n);
        }
 }
 
diff -r d34022158e93 -r cfee41d2141b usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Fri Oct 10 06:59:38 2014 +0000
+++ b/usr.bin/config/sem.c      Fri Oct 10 07:08:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.50 2014/10/10 06:59:38 uebayasi Exp $        */
+/*     $NetBSD: sem.c,v 1.51 2014/10/10 07:08:26 uebayasi Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -560,7 +560,7 @@
        CFGDBG(3, "deva `%s' defined", deva->d_name);
 
        /*
-        * Implicit attribute definition.
+        * Implicit attribute definition for device attachment.
         */
        refattr(deva->d_name);
 



Home | Main Index | Thread Index | Old Index