diff options
author | Robert S. French <rfrench@mit.edu> | 1987-07-07 18:25:33 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-07-07 18:25:33 +0000 |
commit | b3413f9aa813ad00af6c69e98310245b7378a5d4 (patch) | |
tree | be839adae4286c9e2027919f235b9ad27ef9ecc5 /lib/ZLocations.c | |
parent | 1d54411e73b74f2d1e34a019546538d0bec2fcc1 (diff) |
Made ZUnsetLocation non-authenticated
Diffstat (limited to 'lib/ZLocations.c')
-rw-r--r-- | lib/ZLocations.c | 13 |
1 files changed, 7 insertions, 6 deletions
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, |