dirpath
static char *filename = NULL, *dirname = NULL, *dirpath = NULL;
free(dirpath);
dirpath = NULL;
dirpath = strdup("./");
dirpath = fn_tilde_expand(dirname);
dirpath = strdup(dirname);
if (dirpath == NULL)
dir = opendir(dirpath);
dirp_search(struct dirlist *dp, char *dirpath)
cmp = strcmp(dp->dp_dirp, dirpath);
return (dirp_search(dp->dp_left, dirpath));
return (dirp_search(dp->dp_right, dirpath));
char rpcpath[RPCMNT_PATHLEN+1], dirpath[PATH_MAX];
if (realpath(rpcpath, dirpath) == NULL) {
strlcpy(dirpath, rpcpath, sizeof(dirpath));
} else if (stat(dirpath, &stb) == -1 ||
statfs(dirpath, &fsb) == -1) {
fprintf(stderr, "stat failed on %s\n", dirpath);
((dp = dirp_search(ep->ex_dirl, dirpath)) &&
if (imsg_getfh(dirpath, (fhandle_t *)&fhr.fhr_fh) < 0) {
syslog(LOG_ERR, "Can't get fh for %s", dirpath);
add_mlist(hp->h_name, dirpath);
dirpath);
dirpath,
if (!svc_getargs(transp, xdr_dir, dirpath)) {
del_mlist(hp->h_name, dirpath);
del_mlist(inet_ntoa(transp->xp_raddr.sin_addr), dirpath);
char *dirpath;
dirpath = Dir_FindFilei(word, slash+1, path);
if (dirpath != NULL) {
dp = strchr(dirpath, '\0');
while (dp > dirpath && dp[-1] == '/')
Dir_AddDiri(&temp, dirpath, dp);
char *prefix = NULL, *dirpath = NULL, *path;
xasprintf(&dirpath, "%s/%s", homedir, _PATH_SSH_AGENT_SOCKET_DIR);
if ((d = opendir(dirpath)) == NULL) {
error_f("opendir \"%s\": %s", dirpath, strerror(errno));
dirpath, dp->d_name, strerror(errno));
dirpath, dp->d_name);
"from different host", dirpath, dp->d_name);
xasprintf(&path, "%s/%s", dirpath, dp->d_name);
free(dirpath);
bool_t xdr_dirpath(XDR *, dirpath *);
dirpath ml_directory;
dirpath ex_dir;
xdr_dirpath(XDR *xdrs, dirpath *objp)