Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/dhcp/client/scripts Add missing quotes to test -z a...



details:   https://anonhg.NetBSD.org/src/rev/2f8977c45dea
branches:  trunk
changeset: 508693:2f8977c45dea
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Apr 17 23:25:38 2001 +0000

description:
Add missing quotes to test -z argument; from Tim Preston in PR bin/12687.

diffstat:

 usr.sbin/dhcp/client/scripts/netbsd |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 642c2211a654 -r 2f8977c45dea usr.sbin/dhcp/client/scripts/netbsd
--- a/usr.sbin/dhcp/client/scripts/netbsd       Tue Apr 17 21:52:00 2001 +0000
+++ b/usr.sbin/dhcp/client/scripts/netbsd       Tue Apr 17 23:25:38 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: netbsd,v 1.14 2001/04/11 21:53:26 christos Exp $
+# $NetBSD: netbsd,v 1.15 2001/04/17 23:25:38 kleink Exp $
 
 ENTERHOOKS=/etc/dhclient-enter-hooks
 EXITHOOKS=/etc/dhclient-exit-hooks
@@ -133,7 +133,7 @@
                    \( "x$new_host_name" = "x$old_hostname" \) ]; then
                        current_hostname=`hostname`
                fi
-               if [ \( -z $current_hostname \) -o \
+               if [ \( -z "$current_hostname" \) -o \
                    \( "x$new_host_name" != "x$old_hostname" \) ]; then
                        hostname $new_host_name
                fi



Home | Main Index | Thread Index | Old Index