Skip to content

Commit

Permalink
PGC_SU_BACKEND is 9.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed Dec 18, 2019
1 parent fa10aa8 commit d05ff15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pg_snakeoil.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ _PG_init()
"ClamAV signature directory",
&signatureDir,
cl_retdbdir(), /* ClamAV default signature directory */
#if PG_VERSION_NUM >= 90500
PGC_SU_BACKEND, /* forbid changing directory after startup, restrict to superusers */
#else
PGC_SUSET,
#endif
0, /* no flags */
NULL, /* GucStringCheckHook check_hook, */
NULL, /* GucStringAssignHook assign_hook, */
Expand Down

0 comments on commit d05ff15

Please sign in to comment.