File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ UniValue JSONRPCError(int code, const std::string& message)
66
66
*/
67
67
static const std::string COOKIEAUTH_USER = " __cookie__" ;
68
68
/* * Default name for auth cookie file */
69
- static const std::string COOKIEAUTH_FILE = " .cookie" ;
69
+ static const char * const COOKIEAUTH_FILE = " .cookie" ;
70
70
71
71
/* * Get name of RPC authentication cookie file */
72
72
static fs::path GetAuthCookieFile (bool temp=false )
73
73
{
74
- std::string arg = gArgs .GetArg (" -rpccookiefile" , COOKIEAUTH_FILE);
74
+ fs::path arg = gArgs .GetPathArg (" -rpccookiefile" , COOKIEAUTH_FILE);
75
75
if (temp) {
76
76
arg += " .tmp" ;
77
77
}
78
- return AbsPathForConfigVal (fs::PathFromString ( arg) );
78
+ return AbsPathForConfigVal (arg);
79
79
}
80
80
81
81
bool GenerateAuthCookie (std::string *cookie_out)
You can’t perform that action at this time.
0 commit comments