From e7a90e99053a6c0575efcb19f3ddda3abd5f59cd Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 17 Aug 2001 16:12:05 +0000 Subject: 2001-08-17 Ragnar Kjørstad H.J. Lu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd. * utils/statd/statd.c (longopts): Add "name". (usage): Add "-n/--name". (main): Set MY_NAME with "-n/--name". * utils/statd/state.c (change_state): Set MY_NAME only if it is NULL. * utils/statd/statd.man: Updated for "-n/--name". --- utils/statd/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/statd/state.c') diff --git a/utils/statd/state.c b/utils/statd/state.c index 101c00b..6becdc7 100644 --- a/utils/statd/state.c +++ b/utils/statd/state.c @@ -56,7 +56,7 @@ change_state (void) if (close (fd) == -1) log (L_ERROR, "close (%s): %s", SM_STAT_PATH, strerror (errno)); - if (!restart) { + if (MY_NAME == NULL) { char fullhost[SM_MAXSTRLEN + 1]; struct hostent *hostinfo; -- cgit