]> andersk Git - moira.git/commitdiff
add user sms to system:administrators before attempting to do lists
authormar <mar>
Tue, 26 Sep 1989 12:11:04 +0000 (12:11 +0000)
committermar <mar>
Tue, 26 Sep 1989 12:11:04 +0000 (12:11 +0000)
afssync/sync.qc

index fb663a2ebad64e99fe90af541355484030948ec4..16677986ec550ded0e8a5e8cd1fcd7852503f474 100644 (file)
@@ -20,6 +20,7 @@
 #include <sms_app.h>
 #include <ctype.h>
 
+#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
This page took 0.043011 seconds and 5 git commands to generate.