Source-Changes-HG archive

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

[src/trunk]: src/etc Fix the do_uid() and do_gid() functions so they actually...



details:   https://anonhg.NetBSD.org/src/rev/0cc4b8800012
branches:  trunk
changeset: 526962:0cc4b8800012
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 14 22:41:36 2002 +0000

description:
Fix the do_uid() and do_gid() functions so they actually work
(a junk var is needed to slurp up the rest of the line that we
don't want).

diffstat:

 etc/postinstall |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5ceea963e21d -r 0cc4b8800012 etc/postinstall
--- a/etc/postinstall   Tue May 14 21:27:05 2002 +0000
+++ b/etc/postinstall   Tue May 14 22:41:36 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.12 2002/05/14 05:31:11 itojun Exp $
+# $NetBSD: postinstall,v 1.13 2002/05/14 22:41:36 thorpej Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -424,7 +424,7 @@
 
        _named=0
        _ntpd=0
-       while read _name; do
+       while read _name _junk; do
                if [ "$_name" = "named" ]; then
                        _named=1
                fi
@@ -461,7 +461,7 @@
 
        _named=0
        _ntpd=0
-       while read _name; do
+       while read _name _junk; do
                if [ "$_name" = "named" ]; then
                        _named=1
                fi



Home | Main Index | Thread Index | Old Index