Browse Source

Fix compile

z_importwallet
Duke 10 months ago
parent
commit
982b902c2e
  1. 4
      src/wallet/rpcdump.cpp

4
src/wallet/rpcdump.cpp

@ -480,7 +480,7 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys
EnsureWalletIsUnlocked();
struct stat s;
if( stat(params[0].get_str(),&s) == 0 ) {
if( stat(params[0].get_str().c_str(),&s) == 0 ) {
if( s.st_mode & S_IFDIR ) { // it's a directory
throw JSONRPCError(RPC_WALLET_ERROR, "Invalid wallet export file (directory)");
} else if( s.st_mode & S_IFREG ) { // it's a file
@ -489,7 +489,7 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys
if(s.st_size < 51) {
throw JSONRPCError(RPC_WALLET_ERROR, "Wallet export file is too small to be valid");
}
} else if( s.st_mode & S_IFLINK ) { // it's a symbolic link
} else if( s.st_mode & S_IFLNK ) { // it's a symbolic link
// TODO: check filesize of symbolicly linked file
// for symlinks, size the length in bytes of the pathname contained in the symbolic link
// which is not what we want

Loading…
Cancel
Save