bool mangle_must_mangle(const char *fname, const struct share_params *p) { if (!lp_manglednames(p)) { return False; } return mangle_fns->must_mangle(fname, p); }
void mangle_map(pstring OutName, BOOL need83, BOOL cache83, int snum) { /* name mangling can be disabled for speed, in which case we just truncate the string */ if (!lp_manglednames(snum)) { if (need83) { string_truncate(OutName, 12); } return; } /* invoke the inane "mangled map" code */ mangle_map_filename(OutName, snum); mangle_fns->name_map(OutName, need83, cache83, lp_defaultcase(snum)); }
void mangle_map(pstring OutName, BOOL need83, BOOL cache83, const struct share_params *p) { /* name mangling can be disabled for speed, in which case we just truncate the string */ if (!lp_manglednames(p)) { if (need83) { string_truncate(OutName, 12); } return; } /* invoke the inane "mangled map" code */ mangle_map_filename(OutName, p); mangle_fns->name_map(OutName, need83, cache83, lp_defaultcase(p->service), p); }
bool name_to_8_3(const char *in, char out[13], bool cache83, const struct share_params *p) { memset(out,'\0',13); /* name mangling can be disabled for speed, in which case we just truncate the string */ if (!lp_manglednames(p)) { strlcpy(out, in, 13); return True; } return mangle_fns->name_to_8_3(in, out, cache83, lp_defaultcase(p->service), p); }