Lines Matching defs:pszBaseDir
181 static bool IsValidBaseDir(const char *pszBaseDir)
194 return RTPathCompare(szCorrect, pszBaseDir) == 0;
640 * @param pszBaseDir The base directory.
651 static RTEXITCODE DoInstall2(const char *pszBaseDir, const char *pszCertDir, const char *pszTarball,
680 rc = RTPathJoin(szFinalPath, sizeof(szFinalPath), pszBaseDir, pszMangledName);
686 rc = RTPathJoin(szTmpPath, sizeof(szTmpPath) - 64, pszBaseDir, pszMangledName);
721 RTDirCreate(pszBaseDir, 0755, 0);
726 rc = RTPathSetMode(pszBaseDir, 0755);
728 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to set directory permissions on '%s': %Rrc", pszBaseDir, rc);
809 const char *pszBaseDir = NULL;
823 if (pszBaseDir)
825 pszBaseDir = ValueUnion.psz;
826 if (!IsValidBaseDir(pszBaseDir))
827 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Invalid base directory: '%s'", pszBaseDir);
892 if (!pszBaseDir)
913 rcExit = DoInstall2(pszBaseDir, pszCertDir, pszTarball, pszTarballDigest, hTarballFile, hTarballFileOpt,
950 const char *pszBaseDir = NULL;
959 if (pszBaseDir)
961 pszBaseDir = ValueUnion.psz;
962 if (!IsValidBaseDir(pszBaseDir))
963 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Invalid base directory: '%s'", pszBaseDir);
984 if (!pszBaseDir)
1001 rc = RTPathJoin(szExtPackDir, sizeof(szExtPackDir), pszBaseDir, strMangledName.c_str());
1042 const char *pszBaseDir = NULL;
1050 if (pszBaseDir)
1052 pszBaseDir = ValueUnion.psz;
1053 if (!IsValidBaseDir(pszBaseDir))
1054 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Invalid base directory: '%s'", pszBaseDir);
1065 if (!pszBaseDir)
1072 rc = RTDirOpen(&pDir, pszBaseDir);
1074 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed open the base directory: %Rrc ('%s')", rc, pszBaseDir);
1109 rc = RTPathJoin(szPath, sizeof(szPath), pszBaseDir, Entry.szName);