Changeset 8397 for branches/cu-security-branch/test/client/sysint/create.c
- Timestamp:
- 06/18/10 20:02:50 (3 years ago)
- Location:
- branches/cu-security-branch
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
test/client/sysint/create.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cu-security-branch
- Property svn:ignore
-
old new 3 3 aclocal.m4 4 4 autom4te.cache 5 config.status6 Makefile7 pvfs2-config.h8 module.mk
-
- Property svn:ignore
-
branches/cu-security-branch/test/client/sysint/create.c
r7290 r8397 26 26 PVFS_object_ref parent_refn; 27 27 PVFS_sys_attr attr; 28 PVFS_credential *cred;28 PVFS_credentials credentials; 29 29 30 30 if (argc != 2) … … 60 60 61 61 memset(&resp_create, 0, sizeof(PVFS_sysresp_create)); 62 cred = PVFS_util_gen_fake_credential(); 63 assert(cred); 62 PVFS_util_gen_credentials(&credentials); 64 63 65 64 entry_name = str_buf; 66 65 attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 67 attr.owner = cred ->userid;68 attr.group = cred ->group_array[0];66 attr.owner = credentials.uid; 67 attr.group = credentials.gid; 69 68 attr.perms = 1877; 70 69 attr.atime = attr.ctime = attr.mtime = 71 70 time(NULL); 72 71 73 ret = PINT_lookup_parent(filename, cur_fs, cred,72 ret = PINT_lookup_parent(filename, cur_fs, &credentials, 74 73 &parent_refn.handle); 75 74 if(ret < 0) … … 84 83 85 84 ret = PVFS_sys_create(entry_name, parent_refn, attr, 86 cred, NULL, NULL, &resp_create);85 &credentials, NULL, &resp_create, NULL, NULL); 87 86 if (ret < 0) 88 87 {
