From f00f36ed123f5388d49dad82a92f4d3166265967 Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 13 Apr 1990 17:34:45 +0000 Subject: [PATCH] sms -> moira --- afssync/Makefile | 2 +- afssync/sync.qc | 21 +++++++++------------ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/afssync/Makefile b/afssync/Makefile index c3e4fd96..9145b74a 100644 --- a/afssync/Makefile +++ b/afssync/Makefile @@ -3,7 +3,7 @@ CFLAGS = -I/mit/afsdev/build/vax/include -I../include -O OBJS = prprocs.o prutils.o utils.o ubik.o -LIBS= -L../lib -lsms -lcom_err \ +LIBS= -L../lib -lmoira -lcom_err \ /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib .SUFFIXES: .qc diff --git a/afssync/sync.qc b/afssync/sync.qc index 16677986..18a2d794 100644 --- a/afssync/sync.qc +++ b/afssync/sync.qc @@ -1,10 +1,7 @@ /* $Header$ * - * This generates the zone files necessary to load a hesiod server. - * The following zones are generated: passwd, uid, pobox, group, - * grplist, gid, filsys, cluster, pcap, sloc, service. * - * (c) Copyright 1988 by the Massachusetts Institute of Technology. + * (c) Copyright 1989 by the Massachusetts Institute of Technology. * For copying and distribution information, please see the file * . */ @@ -16,8 +13,8 @@ #include "print.h" #include "prserver.h" #include "prerror.h" -#include -#include +#include +#include #include #define USERSMS 14487 @@ -39,7 +36,7 @@ char **argv; if (argc != 2) { fprintf(stderr, "usage: %s outfile\n", argv[0]); - exit(SMS_ARGS); + exit(MR_ARGS); } dbase_fd = open(argv[1], O_RDWR|O_CREAT, 0660); @@ -57,14 +54,14 @@ char **argv; do_passwd(); status = PR_AddToGroup(NULL, USERSMS, SYSADMINID); if (status) { - prserror(status, "adding SMS to system:administrators", 0, 0); + prserror(status, "adding MR to system:administrators", 0, 0); } do_groups(); ## end transaction ## exit - exit(SMS_SUCCESS); + exit(MR_SUCCESS); } @@ -83,12 +80,12 @@ static int ingerr(num) switch (*num) { case INGRES_DEADLOCK: - ingres_errno = SMS_DEADLOCK; + ingres_errno = MR_DEADLOCK; break; default: - ingres_errno = SMS_INGRES_ERR; + ingres_errno = MR_INGRES_ERR; } - com_err(whoami, SMS_INGRES_ERR, " code %d\n", *num); + com_err(whoami, MR_INGRES_ERR, " code %d\n", *num); exit(ingres_errno); } -- 2.45.2