~ubuntu-branches/ubuntu/feisty/openafs/feisty

« back to all changes in this revision

Viewing changes to src/bozo/bnode.c

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2007-03-26 18:56:55 UTC
  • Revision ID: package-import@ubuntu.com-20070326185655-osce8n0y0dptgurh
* New upstream release.  (Closes: #415699)
  - Support newer Linux kernels.  (Closes: #409797, #410120)
  - Add aklog fallbacks for null realms to support the referral
    capability in MIT Kerberos 1.6 and later.  (Closes: #410314)
* Apply patch from Thomas Sesselmann to support setting options to pass
  to bosserver in /etc/default/openafs-fileserver.  (Closes: #409357)
* Remove the rx_Init calls in the PAM module.  The internal counters
  that had to be initialized that way have been removed.
* Now that we're running regen.sh as part of the build process, only
  patch the Autoconf source files and not the generated output to make
  the diff easier to audit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/bozo/bnode.c,v 1.17.2.3 2006/08/13 20:19:57 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/bozo/bnode.c,v 1.17.2.5 2006/12/21 23:15:34 shadow Exp $");
15
15
 
16
16
#include <stddef.h>
17
17
#include <stdlib.h>
317
317
afs_int32
318
318
bnode_Create(char *atype, char *ainstance, struct bnode ** abp, char *ap1,
319
319
             char *ap2, char *ap3, char *ap4, char *ap5, char *notifier,
320
 
             int fileGoal)
 
320
             int fileGoal, int rewritefile)
321
321
{
322
322
    struct bnode_type *type;
323
323
    struct bnode *tb;
360
360
    tb->fileGoal = fileGoal;
361
361
 
362
362
    bnode_SetStat(tb, tb->goal);        /* nudge it once */
363
 
    WriteBozoFile(0);
 
363
 
 
364
    if (rewritefile != 0)
 
365
        WriteBozoFile(0);
 
366
 
364
367
    return 0;
365
368
}
366
369
 
740
743
        ec = setsid();
741
744
#elif defined(AFS_DARWIN90_ENV)
742
745
        ec = setpgid(0, 0);
743
 
#elif defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV) 
 
746
#elif defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV)  
744
747
        ec = setpgrp();
745
748
#else
746
749
        ec = setpgrp(0, 0);
912
915
    tp = (struct bnode_proc *)malloc(sizeof(struct bnode_proc));
913
916
    memset(tp, 0, sizeof(struct bnode_proc));
914
917
    tp->next = allProcs;
915
 
    allProcs = tp;
916
 
    *aproc = tp;
917
918
    tp->bnode = abnode;
918
919
    tp->comLine = aexecString;
919
920
    tp->coreName = coreName;    /* may be null */
937
938
    }
938
939
 
939
940
    bnode_FreeTokens(tlist);
 
941
    allProcs = tp;
 
942
    *aproc = tp;
940
943
    tp->pid = cpid;
941
944
    tp->flags = BPROC_STARTED;
942
945
    tp->flags &= ~BPROC_EXITED;