]> andersk Git - moira.git/blobdiff - incremental/afs.c
make sure we destroy tickets before exiting
[moira.git] / incremental / afs.c
index 834c522dbf4834eb871a09d1fc487fa05ce1745d..8a9117ba0fd39982d54f6c5cf9b54c6631a43b16 100644 (file)
@@ -97,10 +97,12 @@ char *cmd;
 
            if ((fd = open("/usr/vice/etc/ThisCell", O_RDONLY, 0)) < 0) {
                critical_alert("incremental", "unable to find AFS cell");
+               unlog();
                exit(1);
            }
            if ((cc = read(fd, localcell, sizeof(localcell))) < 0) {
                critical_alert("incremental", "unable to read AFS cell");
+               unlog();
                exit(1);
            }
            close(fd);
@@ -165,6 +167,7 @@ int afterc;
     if (beforec > U_UID && afterc > U_UID &&
        strcmp(before[U_UID], after[U_UID])) {
        /* change UID, & possibly user name here */
+       unlog();
        exit(1);
     }
 
This page took 0.055673 seconds and 4 git commands to generate.