[1473] in Moira

home help back first fref pref prev next nref lref last post

stella: call canonicalize_hostname() when renaming a host

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Wed Mar 22 15:40:25 2000

Message-Id: <200003222040.PAA01212@wing-commander.mit.edu>
To: moiradev@MIT.EDU
cc: mhbraun@MIT.EDU
Date: Wed, 22 Mar 2000 15:40:19 EST
From: Garry Zacheiss <zacheiss@MIT.EDU>

	This patch prevents you from screwing yourself if you quote the
argument to -R when using stella.

Index: stella.c
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/clients/stella/stella.c,v
retrieving revision 1.2
diff -c -r1.2 stella.c
*** stella.c	2000/03/15 22:44:13	1.2
--- stella.c	2000/03/22 20:33:53
***************
*** 396,402 ****
  
        argv[0] = canonicalize_hostname(strdup(hostname));
        if (newname)
! 	argv[1] = newname;
        if (vendor)
  	argv[2] = vendor;
        if (model)
--- 396,402 ----
  
        argv[0] = canonicalize_hostname(strdup(hostname));
        if (newname)
! 	argv[1] = canonicalize_hostname(strdup(newname));
        if (vendor)
  	argv[2] = vendor;
        if (model)

home help back first fref pref prev next nref lref last post