• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/modules/

Lines Matching refs:path

32 static int atalk_build_paths(TALLOC_CTX *ctx, const char *path,
36 static int atalk_unlink_file(const char *path);
38 static int atalk_get_path_ptr(char *path)
43 for (i = 0; path[i]; i ++) {
44 if (path[i] == '/')
47 else if (path[i] == ':') {
48 path[i] = '\0';
56 static int atalk_build_paths(TALLOC_CTX *ctx, const char *path, const char *fname,
65 if (!ctx || !path || !fname || !adbl_path || !orig_path ||
69 DEBUG(3, ("ATALK: PATH: %s[%s]\n", path, fname));
71 if (strstr(path, APPLEDOUBLE) || strstr(fname, APPLEDOUBLE)) {
72 DEBUG(3, ("ATALK: path %s[%s] already contains %s\n", path, fname, APPLEDOUBLE));
79 *orig_path = talloc_asprintf(ctx, "%s/%s", path, &fname[ptr0]);
88 path, &fname[ptr0], APPLEDOUBLE);
103 static int atalk_unlink_file(const char *path)
108 ret = unlink(path);
147 static void atalk_rrmdir(TALLOC_CTX *ctx, char *path)
153 if (!path) return;
155 dir = opendir(path);
163 path, dent->d_name)))
196 static int atalk_rmdir(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path)
202 if (!conn || !conn->origpath || !path) goto exit_rmdir;
208 strstr(path, APPLEDOUBLE) ? (add = False) : (add = True);
214 conn->origpath, path, add ? "/"APPLEDOUBLE : "")))
221 return SMB_VFS_NEXT_RMDIR(handle, conn, path);
258 static int atalk_unlink(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path)
267 ret = SMB_VFS_NEXT_UNLINK(handle, conn, path);
269 if (!conn || !path) return ret;
298 if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,
314 static int atalk_chmod(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path, mode_t mode)
323 ret = SMB_VFS_NEXT_CHMOD(handle, conn, path, mode);
325 if (!conn || !path) return ret;
330 if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,
346 static int atalk_chown(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path, uid_t uid, gid_t gid)
355 ret = SMB_VFS_NEXT_CHOWN(handle, conn, path, uid, gid);
357 if (!conn || !path) return ret;
362 if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,