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

« back to all changes in this revision

Viewing changes to src/ubik/remote.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/ubik/remote.c,v 1.12.2.2 2005/02/21 01:15:27 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/ubik/remote.c,v 1.12.2.3 2006/12/15 16:38:22 shadow Exp $");
15
15
 
16
16
#include <sys/types.h>
17
17
#ifdef AFS_NT40_ENV
459
459
    code = rx_Write(rxcall, &tlen, sizeof(afs_int32));
460
460
    if (code != sizeof(afs_int32)) {
461
461
        DBRELE(dbase);
 
462
        ubik_dprint("Rx-write length error=%d\n", code);
462
463
        return BULK_ERROR;
463
464
    }
464
465
    offset = 0;
467
468
        code = (*dbase->read) (dbase, file, tbuffer, offset, tlen);
468
469
        if (code != tlen) {
469
470
            DBRELE(dbase);
 
471
            ubik_dprint("read failed error=%d\n", code);
470
472
            return UIOERROR;
471
473
        }
472
474
        code = rx_Write(rxcall, tbuffer, tlen);
473
475
        if (code != tlen) {
474
476
            DBRELE(dbase);
 
477
            ubik_dprint("Rx-write length error=%d\n", code);
475
478
            return BULK_ERROR;
476
479
        }
477
480
        length -= tlen;
545
548
        code = rx_Read(rxcall, tbuffer, tlen);
546
549
        if (code != tlen) {
547
550
            DBRELE(dbase);
 
551
            ubik_dprint("Rx-read length error=%d\n", code);
548
552
            code = BULK_ERROR;
549
553
            goto failed;
550
554
        }
551
555
        code = (*dbase->write) (dbase, file, tbuffer, offset, tlen);
552
556
        if (code != tlen) {
553
557
            DBRELE(dbase);
 
558
            ubik_dprint("write failed error=%d\n", code);
554
559
            code = UIOERROR;
555
560
            goto failed;
556
561
        }