Skip to content

Commit

Permalink
autoconf: #define the expanded version of localstatedir
Browse files Browse the repository at this point in the history
Previously we defined LOCAL_STATE_DIR on the command line which relied
on shell expansion, now that we define it in autoconf.h we have to
expand it ourselves first. This broke the creation of the default unix
socket directory and file.

Without this commit autoconf.h contains:

    #define LOCAL_STATE_DIR "${prefix}/var"

now it will contain:

    #define LOCAL_STATE_DIR "/var/run/suricata"

(prefix respecting of course)

Fixes commit b6a610d.
  • Loading branch information
jasonish committed Feb 18, 2025
1 parent 10ede91 commit bb49cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,7 @@ AC_SUBST(e_logcertsdir)
AC_SUBST(e_sysconfdir)
AC_DEFINE_UNQUOTED([CONFIG_DIR],["$e_sysconfdir"],[Our CONFIG_DIR])
AC_SUBST(e_localstatedir)
AC_DEFINE_UNQUOTED([LOCAL_STATE_DIR],["$localstatedir"],[Our LOCAL_STATE_DIR])
AC_DEFINE_UNQUOTED([LOCAL_STATE_DIR],["$e_localstatedir"],[Our LOCAL_STATE_DIR])
AC_SUBST(e_datadir)
AC_DEFINE_UNQUOTED([DATA_DIR],["$e_datadir"],[Our DATA_DIR])
AC_SUBST(e_magic_file)
Expand Down

0 comments on commit bb49cf9

Please sign in to comment.