From b3413f9aa813ad00af6c69e98310245b7378a5d4 Mon Sep 17 00:00:00 2001 From: "Robert S. French" Date: Tue, 7 Jul 1987 18:25:33 +0000 Subject: Made ZUnsetLocation non-authenticated --- lib/ZLocations.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/ZLocations.c') diff --git a/lib/ZLocations.c b/lib/ZLocations.c index e831eaf..8e9eeae 100644 --- a/lib/ZLocations.c +++ b/lib/ZLocations.c @@ -38,27 +38,28 @@ Code_t ZSetLocation() } return (Z_SendLocation(LOGIN_CLASS,quiet?LOGIN_QUIET_LOGIN: - LOGIN_USER_LOGIN)); + LOGIN_USER_LOGIN,ZAUTH)); } Code_t ZUnsetLocation() { - return (Z_SendLocation(LOGIN_CLASS,LOGIN_USER_LOGOUT)); + return (Z_SendLocation(LOGIN_CLASS,LOGIN_USER_LOGOUT,ZNOAUTH)); } Code_t ZHideLocation() { - return (Z_SendLocation(LOCATE_CLASS,LOCATE_HIDE)); + return (Z_SendLocation(LOCATE_CLASS,LOCATE_HIDE,ZAUTH)); } Code_t ZUnhideLocation() { - return (Z_SendLocation(LOCATE_CLASS,LOCATE_UNHIDE)); + return (Z_SendLocation(LOCATE_CLASS,LOCATE_UNHIDE,ZAUTH)); } -Z_SendLocation(class,opcode) +Z_SendLocation(class,opcode,auth) char *class; char *opcode; + int (*auth)(); { char *ttyname(),*ctime(); @@ -92,7 +93,7 @@ Z_SendLocation(class,opcode) bptr[1] = ctime(&ourtime); bptr[1][strlen(bptr[1])-1] = '\0'; - if ((retval = ZSendList(¬ice,bptr,2,ZAUTH)) != ZERR_NONE) + if ((retval = ZSendList(¬ice,bptr,2,auth)) != ZERR_NONE) return (retval); if ((retval = ZIfNotice(buffer,sizeof buffer,&retnotice,(int *)0, -- cgit v1.2.3