Changeset 532
- Timestamp:
- 02/18/07 20:02:12 (2 years ago)
- Files:
-
- trunk/src/vcd/methods/vx/vx_create.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vcd/methods/vx/vx_create.c
r517 r532 673 673 method_return_if_fault(env); 674 674 675 /* validate name */ 676 if (!validate_name(name)) 677 method_return_faultf(env, MEINVAL, 678 "invalid name value: %s", name); 679 675 680 /* get template dir */ 676 681 if (str_isempty(template) || !str_isgraph(template)) … … 697 702 if (!force) 698 703 method_return_fault(env, MEEXIST); 704 699 705 else if (vx_info(xid, NULL) == 0) 700 706 method_return_fault(env, MERUNNING); … … 702 708 703 709 else 704 method_return_fault(env, ME NOVPS);710 method_return_fault(env, MEPERM); 705 711 } 706 712 … … 710 716 711 717 /* check vdir */ 712 if (str_isempty(vdir) || !auth_is owner(user, name))718 if (str_isempty(vdir) || !auth_isadmin(user, name)) 713 719 vdir = vxdb_getvdir(name); 714 720
