Lines Matching refs:qpath
6112 char qpath[MAXPATHLEN];
6155 /* qpath: directory of current workgroup */
6156 len = sm_strlcpy(qpath, qg->qg_qdir, sizeof(qpath));
6157 if (len >= sizeof(qpath))
6160 qg->qg_qdir, (int) sizeof(qpath));
6165 /* begin of qpath must be same as basedir */
6166 if (strncmp(basedir, qpath, blen) != 0 &&
6167 (strncmp(basedir, qpath, blen - 1) != 0 || len != blen - 1))
6170 qpath, basedir);
6184 qg->qg_qdir, (int) sizeof(qpath));
6195 cp = &qpath[len - 1];
6205 if ((cp = SM_LAST_DIR_DELIM(qpath)) == NULL)
6210 qpath);
6214 if (cp == qpath)
6221 (void) sm_strlcpy(qpath + 1, qpath, sizeof(qpath) - 1);
6363 i = safedirpath(qpath, RunAsUid, RunAsGid, NULL, sff, 0, 0);
6366 syserr("can not opendir(%s)", qpath);
6369 qpath, sm_errstring(i));