• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/

Lines Matching refs:u_name

331     LOG(log_error, logtype_afpd, "setdirparam(%s): %s: %s", fullpathname(path->u_name), where, strerror(err) );
338 * Convert ret->m_name to ret->u_name from client encoding to server encoding.
385 ret->u_name = t;
389 if ( (t = utompath(vol, ret->u_name, fileid, utf8_encoding())) ) {
397 if (ret->u_name == NULL) {
398 if ((ret->u_name = mtoupath(vol, ret->m_name, dir->d_did, utf8_encoding())) == NULL) {
432 ret->u_name = ret->m_name;
434 ret->u_name = ret->m_name + blength(dir->d_m_name) + 1;
435 memcpy(ret->u_name, cfrombstr(dir->d_u_name), blength(dir->d_u_name) + 1);
443 ret->u_name);
453 ret->u_name = ret->m_name;
455 ret->u_name = ret->m_name + blength(dir->d_m_name) + 1;
456 memcpy(ret->u_name, cfrombstr(dir->d_u_name), blength(dir->d_u_name) + 1);
772 if (veto_file(ENUMVETO, path->u_name))
775 savepath = path->u_name;
778 if ( dir->d_did == did && strcmp(lname, path->u_name) == 0) {
779 path->u_name = cname;
794 /* LOG(log_debug, logtype_afpd, "caseenumerate: for %s", path->u_name); */
795 if ((size_t) -1 == convert_string(vol->v_volcharset, CH_UCS2, path->u_name, -1, u2_path, sizeof(u2_path)) )
796 LOG(log_debug, logtype_afpd, "caseenumerate: conversion failed for %s", path->u_name);
798 /*LOG(log_debug, logtype_afpd, "caseenumerate: dir: %s, path: %s", dir->d_u_name, path->u_name); */
808 tmp = path->u_name;
810 path->u_name = cname;
813 LOG(log_debug, logtype_afpd, "caseenumerate: using dir: %s, path: %s", de->d_name, path->u_name);
820 path->u_name = tmp;
830 path->u_name = savepath;
832 /* LOG(log_debug, logtype_afpd, "caseenumerate: path on ret: %s", path->u_name); */
843 * @param u_name (r) directory name in server side encoding
855 const char *u_name,
877 LOG(log_error, logtype_afpd, "dir_new(did: %u) {%s, %s}: couldn't set UCS2 name", ntohl(did), m_name, u_name);
881 if (m_name == u_name || !strcmp(m_name, u_name)) {
884 else if ((dir->d_u_name = bfromcstr(u_name)) == NULL) {
931 * @param path (rw) pointer to struct path with valid path->u_name
932 * @param len (r) strlen of path->u_name
936 * @note Function also assigns path->m_name from path->u_name.
952 if ((cdir = dircache_search_by_name(vol, dir, path->u_name, strlen(path->u_name))) != NULL) {
955 ntohl(dir->d_did), cfrombstr(dir->d_fullpath), path->u_name,
965 if ((ad_open_metadata(path->u_name, ADFLAGS_DIR, 0, &ad)) == 0) /* 1 */
969 if ((id = get_id(vol, adp, &path->st, dir->d_did, path->u_name, len)) == 0) { /* 2 */
979 if ((path->m_name = utompath(vol, path->u_name, id, utf8_encoding())) == NULL) {
980 LOG(log_error, logtype_afpd, "dir_add(\"%s\"): can't assign macname", path->u_name);
989 || (bcatcstr(fullpath, path->u_name)) != BSTR_OK) {
997 path->u_name,
1015 cfrombstr(dir->d_u_name), path->u_name, err);
1027 ntohl(dir->d_did), cfrombstr(dir->d_fullpath), path->u_name,
1275 ret.u_name = NULL;
1282 LOG(log_maxdebug, logtype_afpd, "came('%s'): {node: '%s}", cfrombstr(dir->d_fullpath), ret.u_name);
1285 if (check_name(vol, ret.u_name)) {
1287 LOG(log_info, logtype_afpd, "cname: illegal path: '%s'", ret.u_name);
1313 * ret.u_name doesn't exist, might be afp_createfile|dir
1326 cfrombstr(dir->d_fullpath), ret.u_name);
1333 cfrombstr(dir->d_fullpath), ret.u_name);
1342 cfrombstr(dir->d_fullpath), ret.u_name);
1345 cfrombstr(dir->d_fullpath), ret.u_name);
1353 LOG(log_info, logtype_afpd, "cname: special file: '%s'", ret.u_name);
1359 int unamelen = strlen(ret.u_name);
1360 cdir = dircache_search_by_name(vol, dir, ret.u_name, unamelen); /* 14 */
1365 ntohl(dir->d_did), ret.u_name, getcwdpath());
1391 ret.u_name = mtoupath(vol, ret.m_name, 0, 1); /* Force "." into a useable static buffer */
1398 ret.u_name);
1490 accessmode(current_vol, path->u_name, &ma, curdir, &path->st);
1493 path->u_name, ma.ma_user);
1496 LOG(log_debug, logtype_afpd, "file_access(\"%s\"): write access denied", path->u_name);
1500 LOG(log_debug, logtype_afpd, "file_access(\"%s\"): read access denied", path->u_name);
1544 char *upath = s_path->u_name;
1611 s_path->u_name, ntohl(pdid));
1665 s_path->u_name, ntohl(dir->d_did));
1901 upath = path->u_name;
2391 upath = s_path->u_name;
2407 if ((dir = dir_add(vol, curdir, s_path, strlen(s_path->u_name))) == NULL) {