From 278dd826baa17b3db3189b74b0bfc2968dbd3435 Mon Sep 17 00:00:00 2001 From: mar Date: Tue, 26 Sep 1989 12:11:04 +0000 Subject: [PATCH] add user sms to system:administrators before attempting to do lists --- afssync/sync.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/afssync/sync.qc b/afssync/sync.qc index fb663a2e..16677986 100644 --- a/afssync/sync.qc +++ b/afssync/sync.qc @@ -20,6 +20,7 @@ #include #include +#define USERSMS 14487 #define min(x,y) ((x) < (y) ? (x) : (y)) struct hash *users = NULL; @@ -33,6 +34,7 @@ main(argc, argv) int argc; char **argv; { + int status; int ingerr(); if (argc != 2) { @@ -53,6 +55,10 @@ char **argv; ## begin transaction do_passwd(); + status = PR_AddToGroup(NULL, USERSMS, SYSADMINID); + if (status) { + prserror(status, "adding SMS to system:administrators", 0, 0); + } do_groups(); ## end transaction -- 2.45.1