Lines Matching full:owner

42 free_cpio_owner(struct cpio_owner *owner) {  in free_cpio_owner()  argument
43 owner->uid = -1; in free_cpio_owner()
44 owner->gid = -1; in free_cpio_owner()
45 free(owner->uname); in free_cpio_owner()
46 free(owner->gname); in free_cpio_owner()
55 struct cpio_owner owner; in DEFINE_TEST()
58 assert(0 == owner_parse(ROOT, &owner, &errstr)); in DEFINE_TEST()
59 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
61 assertEqualInt(-1, owner.gid); in DEFINE_TEST()
62 free_cpio_owner(&owner); in DEFINE_TEST()
64 assert(0 == owner_parse(ROOT ":", &owner, &errstr)); in DEFINE_TEST()
65 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
67 assert(int_in_list(owner.gid, root_gids, in DEFINE_TEST()
69 free_cpio_owner(&owner); in DEFINE_TEST()
71 assert(0 == owner_parse(ROOT ".", &owner, &errstr)); in DEFINE_TEST()
72 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST()
74 assert(int_in_list(owner.gid, root_gids, in DEFINE_TEST()
76 free_cpio_owner(&owner); in DEFINE_TEST()
78 assert(0 == owner_parse("111", &owner, &errstr)); in DEFINE_TEST()
79 assertEqualInt(111, owner.uid); in DEFINE_TEST()
80 assertEqualInt(-1, owner.gid); in DEFINE_TEST()
81 free_cpio_owner(&owner); in DEFINE_TEST()
83 assert(0 == owner_parse("112:", &owner, &errstr)); in DEFINE_TEST()
84 assertEqualInt(112, owner.uid); in DEFINE_TEST()
86 free_cpio_owner(&owner); in DEFINE_TEST()
88 assert(0 == owner_parse("113.", &owner, &errstr)); in DEFINE_TEST()
89 assertEqualInt(113, owner.uid); in DEFINE_TEST()
91 free_cpio_owner(&owner); in DEFINE_TEST()
93 assert(0 == owner_parse(":114", &owner, &errstr)); in DEFINE_TEST()
94 assertEqualInt(-1, owner.uid); in DEFINE_TEST()
95 assertEqualInt(114, owner.gid); in DEFINE_TEST()
96 free_cpio_owner(&owner); in DEFINE_TEST()
98 assert(0 == owner_parse(".115", &owner, &errstr)); in DEFINE_TEST()
99 assertEqualInt(-1, owner.uid); in DEFINE_TEST()
100 assertEqualInt(115, owner.gid); in DEFINE_TEST()
101 free_cpio_owner(&owner); in DEFINE_TEST()
103 assert(0 == owner_parse("116:117", &owner, &errstr)); in DEFINE_TEST()
104 assertEqualInt(116, owner.uid); in DEFINE_TEST()
105 assertEqualInt(117, owner.gid); in DEFINE_TEST()
106 free_cpio_owner(&owner); in DEFINE_TEST()
115 assert(0 != owner_parse(":nonexistentgroup", &owner, &errstr)); in DEFINE_TEST()
117 free_cpio_owner(&owner); in DEFINE_TEST()
120 assert(0 != owner_parse(ROOT ":nonexistentgroup", &owner, &errstr)); in DEFINE_TEST()
122 free_cpio_owner(&owner); in DEFINE_TEST()
125 assert(0 != owner_parse("nonexistentuser:nonexistentgroup", &owner, in DEFINE_TEST()
128 free_cpio_owner(&owner); in DEFINE_TEST()