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

« back to all changes in this revision

Viewing changes to src/auth/cellconfig.c

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2006-11-20 17:29:46 UTC
  • Revision ID: package-import@ubuntu.com-20061120172946-0oap8eaydmhow3of
* No longer pass explicit cache tuning options to afsd and instead let
  OpenAFS automatically choose tuning based on the cache size.
* Accept trailing whitespace in ThisCell.
* Fix path canonicalization on the server, enabling bos getlog with a
  simple log name to work properly against a Debian bosserver.
* Change the documentation of afsd -shutdown to be less dire and more
  accurate.  Thanks, Daniel J. Priem.  (Closes: #394990)
* Document (at least partially) AFS's mapping of Kerberos v5 principal
  names to Kerberos v4 format in the aklog man page.  Thanks, Daniel
  J. Priem.  (Closes: #394832)
* Document that aklog -setpag may not always work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
{
479
479
    char *rc;
480
480
    char tbuffer[256];
481
 
    char *p;
 
481
    char *start, *p;
482
482
    afsconf_FILE *fp;
483
483
    
484
484
    strcompose(tbuffer, 256, adir->name, "/", AFSDIR_THISCELL_FILE, NULL);
488
488
    }
489
489
    rc = fgets(tbuffer, 256, fp);
490
490
    fclose(fp);
491
 
 
492
 
    p = strchr(tbuffer, '\n');
493
 
    if (p)
494
 
        *p = '\0';
495
 
 
496
 
    adir->cellName = strdup(tbuffer);
 
491
    if (rc == NULL)
 
492
        return -1;
 
493
 
 
494
    start = tbuffer;
 
495
    while (*start != '\0' && isspace(*start))
 
496
        start++;
 
497
    p = start;
 
498
    while (*p != '\0' && !isspace(*p))
 
499
        p++;
 
500
    *p = '\0';
 
501
    if (*start == '\0')
 
502
        return -1;
 
503
 
 
504
    adir->cellName = strdup(start);
497
505
    return 0;
498
506
}
499
507