Changeset 573
- Timestamp:
- 05/13/07 15:54:14 (2 years ago)
- Files:
-
- trunk/src/vcd/methods/vxdb/vxdb_owner_add.c (modified) (1 diff)
- trunk/src/vcd/methods/vxdb/vxdb_vx_sched_get.c (modified) (2 diffs)
- trunk/src/vcd/methods/vxdb/vxdb_vx_sched_remove.c (modified) (2 diffs)
- trunk/src/vcd/methods/vxdb/vxdb_vx_sched_set.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vcd/methods/vxdb/vxdb_owner_add.c
r534 r573 41 41 method_return_if_fault(env); 42 42 43 uid = auth_getuid(user); 44 45 if (uid < 1) 43 if (!(uid = auth_getuid(user))) 46 44 method_return_faultf(env, MENOUSER, 47 45 "user does not exist: %s", user); trunk/src/vcd/methods/vxdb/vxdb_vx_sched_get.c
r534 r573 18 18 #include "auth.h" 19 19 #include "methods.h" 20 #include "validate.h" 20 21 #include "vxdb.h" 21 22 … … 39 40 "cpuid", &cpuid); 40 41 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); 41 46 42 47 if (!(xid = vxdb_getxid(name))) trunk/src/vcd/methods/vxdb/vxdb_vx_sched_remove.c
r534 r573 18 18 #include "auth.h" 19 19 #include "methods.h" 20 #include "validate.h" 20 21 #include "vxdb.h" 21 22 … … 40 41 method_return_if_fault(env); 41 42 43 if (!validate_cpuid(cpuid) && cpuid != -2) 44 method_return_faultf(env, MEINVAL, 45 "cpuid out of range: %d", cpuid); 46 42 47 if (!(xid = vxdb_getxid(name))) 43 48 method_return_fault(env, MENOVPS); trunk/src/vcd/methods/vxdb/vxdb_vx_sched_set.c
r534 r573 57 57 method_return_faultf(env, MEINVAL, 58 58 "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); 61 61 62 62 if (!(xid = vxdb_getxid(name)))
