This is a patch file for "unrar" 5.3.11. It implements a minor fea- ture. Specifically, if this change is used, "unrar" and "libunrar.so" will support an environment variable named "UNRARPWALL". If the varia- ble in question is set, and has a value that starts with "y" or "Y", "unrar" and "libunrar.so" will set the "GlobalPassword" option flag equal to true (nonzero). --- unrar.old/extract.cpp +++ unrar/extract.cpp @@ -1,3 +1,4 @@ +#include #include "rar.hpp" CmdExtract::CmdExtract(CommandData *Cmd) @@ -87,6 +88,15 @@ GlobalPassword=(Cmd->Password.IsSet()); + { + char *cp = getenv ("UNRARPWALL"); + + if ((cp != NULL) && ((*cp == 'y') || (*cp == 'Y'))) + { + GlobalPassword = 1; + } + } + DataIO.UnpVolume=false; PrevProcessed=false;