Changeset 573

Show
Ignore:
Timestamp:
05/13/07 15:54:14 (2 years ago)
Author:
chtekk
Message:

VXDB checked.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vcd/methods/vxdb/vxdb_owner_add.c

    r534 r573  
    4141        method_return_if_fault(env); 
    4242 
    43         uid = auth_getuid(user); 
    44  
    45         if (uid < 1) 
     43        if (!(uid = auth_getuid(user))) 
    4644                method_return_faultf(env, MENOUSER, 
    4745                                "user does not exist: %s", user); 
  • trunk/src/vcd/methods/vxdb/vxdb_vx_sched_get.c

    r534 r573  
    1818#include "auth.h" 
    1919#include "methods.h" 
     20#include "validate.h" 
    2021#include "vxdb.h" 
    2122 
     
    3940                        "cpuid", &cpuid); 
    4041        method_return_if_fault(env); 
     42 
     43        if (!validate_cpuid(cpuid) && cpuid != -2) 
     44                method_return_faultf(env, MEINVAL, 
     45                                "cpuid out of range: %d", cpuid); 
    4146 
    4247        if (!(xid = vxdb_getxid(name))) 
  • trunk/src/vcd/methods/vxdb/vxdb_vx_sched_remove.c

    r534 r573  
    1818#include "auth.h" 
    1919#include "methods.h" 
     20#include "validate.h" 
    2021#include "vxdb.h" 
    2122 
     
    4041        method_return_if_fault(env); 
    4142 
     43        if (!validate_cpuid(cpuid) && cpuid != -2) 
     44                method_return_faultf(env, MEINVAL, 
     45                                "cpuid out of range: %d", cpuid); 
     46 
    4247        if (!(xid = vxdb_getxid(name))) 
    4348                method_return_fault(env, MENOVPS); 
  • trunk/src/vcd/methods/vxdb/vxdb_vx_sched_set.c

    r534 r573  
    5757                method_return_faultf(env, MEINVAL, 
    5858                                "invalid bucket specification: %d,%d,%d,%d,%d,%d", 
    59                                 fillrate, interval, fillrate2, 
    60                                 interval2, tokensmin, tokensmax); 
     59                                fillrate, interval, fillrate2, interval2, 
     60                                tokensmin, tokensmax); 
    6161 
    6262        if (!(xid = vxdb_getxid(name)))