• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/

Lines Matching defs:path

149     struct path         *s_path;
240 struct path *path;
267 if (NULL == ( path = cname( vol, dir, &ibuf ))) {
271 st = &path->st;
272 if (!path->st_valid) {
276 of_statdir(vol, path);
279 if ( path->st_errno != 0 ) {
291 rc = setdirparams(vol, path, bitmap, ibuf );
293 rc = setfilparams(vol, path, bitmap, ibuf );
344 struct path path;
362 /* Need full path */
368 path.st_valid = 0;
369 path.u_name = oldunixname;
372 opened = of_findnameat(sdir_fd, &path);
374 opened = of_findname(&path);
427 path.u_name = upath;
428 st = &path.st;
440 if (stat(upath, st) == 0 || caseenumerate(vol, &path, curdir) == 0) {
448 } else if (stat(upath, st ) == 0 || caseenumerate(vol, &path, curdir) == 0) {
454 path.st_valid = 1;
455 path.st_errno = errno;
456 if (of_findname(&path)) {
505 struct path *path;
531 if (NULL == ( path = cname( vol, sdir, &ibuf )) ) {
538 isdir = path_isadir(path);
539 if ( *path->m_name != '\0' ) {
540 strcpy(oldname, path->m_name); /* an extra copy for of_rename */
543 sdir = path->d_dir;
557 /* another place where we know about the path type */
579 struct path *s_path;
660 bstring path;
665 if ((path = bstrcpy(dir->d_fullpath)) == NULL)
667 if (bcatcstr(path, "/") != BSTR_OK)
669 if (bcatcstr(path, u) != BSTR_OK)
671 if (path->slen > MAXPATHLEN)
674 LOG(log_debug, logtype_afpd, "absupath: %s", cfrombstr(path));
676 strncpy(pathbuf, cfrombstr(path), blength(path) + 1);
677 bdestroy(path);
696 struct path *path;
731 if (NULL == ( path = cname( vol, sdir, &ibuf )) ) {
739 isdir = path_isadir(path);
740 if ( *path->m_name != '\0' ) {
742 sdir = path->d_dir;
744 strcpy(oldname, path->m_name); /* an extra copy for of_rename */
759 if (NULL == ( path = cname( vol, ddir, &ibuf ))) {
764 if ( *path->m_name != '\0' ) {
765 rc = path_error(path, AFPERR_NOOBJ);
769 /* one more place where we know about path type */
831 int veto_file(const char*veto_str, const char*path)
832 /* given a veto_str like "abc/zxc/" and path "abc", return 1
834 * if path matches any one of the veto_str elements exactly, then 1 is returned
839 int j; /* index to path */
841 if ((veto_str == NULL) || (path == NULL))
846 if ((j>0) && (path[j] == '\0')) {
847 LOG(log_debug, logtype_afpd, "vetoed file:'%s'", path);
852 if (veto_str[i] != path[j]) {