[OpenSIPS-Devel] [OpenSIPS/opensips] 19406f: Handle unset DB_PATH in opensipsctl.sqlite

Ionut Ionita ionutionita at opensips.org
Tue Mar 21 06:22:34 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 19406f74534de470689fb06e243d411539f56e71
      https://github.com/OpenSIPS/opensips/commit/19406f74534de470689fb06e243d411539f56e71
  Author: jdoe0 <jdoe at mailinator.com>
  Date:   2017-03-21 (Tue, 21 Mar 2017)

  Changed paths:
    M scripts/opensipsctl.sqlite

  Log Message:
  -----------
  Handle unset DB_PATH in opensipsctl.sqlite

When DB_PATH is unset, sqlite_query will invoke the sqlite executable
with a single parameter. This causes sqlite to interpret the query as
the path to the database file and subsquently enter interactive mode,
causing opensipsctl to freeze. Prevent this by setting DB_PATH to a
default value when the variable is unset.


  Commit: ed89fe888b96ab44a9dcd479390d3c4eb2170021
      https://github.com/OpenSIPS/opensips/commit/ed89fe888b96ab44a9dcd479390d3c4eb2170021
  Author: Ionut Ionita <ionutionita at opensips.org>
  Date:   2017-03-21 (Tue, 21 Mar 2017)

  Changed paths:
    M scripts/opensipsctl.sqlite

  Log Message:
  -----------
  Merge pull request #1078 from jdoe0/sqlite-dbpath-fallback

Handle unset DB_PATH in opensipsctl.sqlite


Compare: https://github.com/OpenSIPS/opensips/compare/62e897a03fb6...ed89fe888b96


More information about the Devel mailing list