mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Allow redbean to accept --assimilate option without complaining (#916)
This allows using --assimilate on Windows or already assimilated binary. Ref #356.
This commit is contained in:
parent
cc5c5319bf
commit
0bffd09433
1 changed files with 3 additions and 0 deletions
|
@ -7349,6 +7349,9 @@ static void GetOpts(int argc, char *argv[]) {
|
|||
void RedBean(int argc, char *argv[]) {
|
||||
char ibuf[21];
|
||||
int fd;
|
||||
// don't complain about --assimilate if it's the only parameter,
|
||||
// as it can only get here if it's already native or assimilated
|
||||
if (argc == 2 && strcmp(argv[1], "--assimilate") == 0) return;
|
||||
if (IsLinux()) {
|
||||
// disable weird linux capabilities
|
||||
for (int e = errno, i = 0;; ++i) {
|
||||
|
|
Loading…
Add table
Reference in a new issue