Lines Matching refs:filename
106 char *filename;
132 filename = talloc_asprintf(tmp_ctx, "%s/ccfile", dn3);
133 fail_unless(filename != NULL, "talloc_asprintf failed.");
137 ret = sss_krb5_precreate_ccache(filename, uid, gid);
143 ret = sss_krb5_precreate_ccache(filename, uid, gid);
162 char *filename;
178 filename = talloc_asprintf(tmp_ctx, "%s/ccfile", subdirname);
179 fail_unless(filename != NULL, "talloc_asprintf failed.");
181 ret = sss_krb5_precreate_ccache(filename, 12345, 12345);
193 char *filename;
216 filename = talloc_asprintf(tmp_ctx, "%s/abc/./ccfile", dirname);
217 fail_unless(filename != NULL, "talloc_asprintf failed.");
218 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
222 filename = talloc_asprintf(tmp_ctx, "%s/abc/../ccfile", dirname);
223 fail_unless(filename != NULL, "talloc_asprintf failed.");
224 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
226 "illegal pattern '/../' in filename [%s].",
227 filename);
229 filename = talloc_asprintf(tmp_ctx, "%s/abc//ccfile", dirname);
230 fail_unless(filename != NULL, "talloc_asprintf failed.");
231 result = expand_ccname_template(tmp_ctx, kr, filename, illegal_re, true, true);
233 "illegal pattern '//' in filename [%s].",
234 filename);