You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lock function in fetch-params.sh constructs an absolute path named lockfile:
local lockfile=/tmp/fetch_params.lock
Then, it runs a command to open the lock file with file handle 200:
eval "exec 200>/$lockfile"
This command adds an extra forward slash to the beginning of the path.
Steps to reproduce
Many (most?) platforms are forgiving about this. When running this command in an msys2 environment however, the script fails when it reaches the above line. So the issue can be reproduced by running the script from an msys2 shell.
Expected behaviour
The script should fetch the zkSNARK parameters
Actual behaviour
Here is the output I got when running fetch-params from msys2:
IEUser@MSEDGEWIN10 MINGW64 ~/Projects/zcash
$ ./zcutil/fetch-params.sh
./zcutil/fetch-params.sh: line 143: //tmp/fetch_params.lock: No such file or directory
flock: 200: Bad file descriptor
Only one instance of fetch-params.sh can be run at a time.
The text was updated successfully, but these errors were encountered:
Description
The
lock
function infetch-params.sh
constructs an absolute path namedlockfile
:Then, it runs a command to open the lock file with file handle 200:
This command adds an extra forward slash to the beginning of the path.
Steps to reproduce
Many (most?) platforms are forgiving about this. When running this command in an msys2 environment however, the script fails when it reaches the above line. So the issue can be reproduced by running the script from an msys2 shell.
Expected behaviour
The script should fetch the zkSNARK parameters
Actual behaviour
Here is the output I got when running fetch-params from msys2:
The text was updated successfully, but these errors were encountered: