]> andersk Git - moira.git/blobdiff - afssync/pt_util.c
remove bogus "old" list args
[moira.git] / afssync / pt_util.c
index 961a9321f48288343a53f94b2d879c6f227a8bec..bf75b5b493a9f37e93cbc56a40a3cd1f095075ca 100644 (file)
@@ -28,8 +28,8 @@
 #include "pterror.h"
 
 #define IDHash(x) (abs(x) % HASHSIZE)
-#define print_id(x) ( ((flags&DO_SYS)==0 && (abs(x)>32767)) || \
-                     ((flags&DO_OTR)==0 && (abs(x)<32768)))
+#define print_id(x) ( ((flags&DO_SYS)==0 && (x<-32767 || x>97536)) || \
+                     ((flags&DO_OTR)==0 && (x>-32768 && x<97537)))
 
 extern char *optarg;
 extern int optind;
@@ -253,6 +253,7 @@ char **argv;
                    code = pr_ReadEntry(0,0,gpos,&gentry);
                    if (!code) {
                        gentry.flags = flags;
+                       gentry.ngroups = quota;
                        code = pr_WriteEntry(0,0,gpos,&gentry);
                    }
                    if (code)
This page took 0.129331 seconds and 4 git commands to generate.