SQLite Forum

Missing SQLITE_OMIT_POPEN guard
Login
I'm attempting to compile shell.c to webassembly with SQLITE_OMIT_POPEN however it misses one popen on line 19058 in shell.c, which causes popen to be called regardless of defining SQLITE_OMIT_POPEN.

```
    if( azArg[1][0]=='|' ){
      p->in = popen(azArg[1]+1, "r");
      if( p->in==0 ){
        utf8_printf(stderr, "Error: cannot open \"%s\"\n", azArg[1]);
        rc = 1;
      }else{
```

The other two calls were guarded.

```
#ifdef SQLITE_OMIT_POPEN
      raw_printf(stderr, "Error: pipes are not supported in this OS\n");
      rc = 1;
      p->out = stdout;
#else
      p->out = popen(zFile + 1, "w");
```