mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
50368: adjust ztie'd bitflags so local variables cannot mess with database
This commit is contained in:
parent
123497b78e
commit
f7441b4645
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-06-21 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 50368: Src/Modules/db_gdbm.c: adjust bitflags so local copies of
|
||||
variables cannot mess with database file contents
|
||||
|
||||
2022-06-16 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 50372: Etc/FAQ.yo: remove redundant references from days of
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
#include "db_gdbm.mdh"
|
||||
#include "db_gdbm.pro"
|
||||
|
||||
#ifndef PM_UPTODATE
|
||||
#define PM_UPTODATE (1<<19) /* Parameter has up-to-date data (e.g. loaded from DB) */
|
||||
#ifndef PM_UPTODATE /* Parameter has up-to-date data (e.g. loaded from DB) */
|
||||
#define PM_UPTODATE PM_DONTIMPORT_SUID /* Safe PM_ bit to re-use */
|
||||
#endif
|
||||
|
||||
static Param createhash( char *name, int flags );
|
||||
|
@ -111,7 +111,7 @@ bin_ztie(char *nam, char **args, Options ops, UNUSED(int func))
|
|||
struct gsu_scalar_ext *dbf_carrier;
|
||||
char *resource_name, *pmname;
|
||||
GDBM_FILE dbf = NULL;
|
||||
int read_write = GDBM_SYNC, pmflags = PM_REMOVABLE;
|
||||
int read_write = GDBM_SYNC, pmflags = PM_REMOVABLE|PM_SINGLE;
|
||||
Param tied_param;
|
||||
|
||||
if(!OPT_ISSET(ops,'d')) {
|
||||
|
|
Loading…
Reference in a new issue