Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44bf2533cd | ||
|
|
2444c82a3f | ||
|
|
e67ad1d1eb | ||
|
|
71536684a7 |
@@ -10,6 +10,34 @@ HIGH: There is a critical bug that may affect a subset of users. Upgrade!
|
||||
CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
================================================================================
|
||||
Redis 3.2.3 Released Tue Aug 02 10:55:24 CEST 2016
|
||||
================================================================================
|
||||
|
||||
Upgrade urgency MODERATE: Fix replication delay and redis-cli security issue.
|
||||
|
||||
Hello,
|
||||
|
||||
this is a minor release of Redis addressing two bugs:
|
||||
|
||||
1. There was an inverted if statement logic problem in replication.c causing
|
||||
a replication delay. This is not an actual problem since things work
|
||||
as expected, but worth to fix ASAP anyway.
|
||||
|
||||
2. Redis-cli created the history file with insecure permissions, allowing
|
||||
reding from the file. This was actually a bug in linenoise which is
|
||||
now fixed. The applied fix is from Chris Lamb.
|
||||
|
||||
List of commits:
|
||||
|
||||
Qu Chen in commit e67ad1d:
|
||||
Fix a bug to delay bgsave while AOF rewrite in progress for replication
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
antirez in commit 7153668:
|
||||
Update linenoise to fix insecure redis-cli history file creation.
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
================================================================================
|
||||
Redis 3.2.2 Released Thu Jul 28 14:14:54 CEST 2016
|
||||
================================================================================
|
||||
|
||||
Vendored
+6
-1
@@ -111,6 +111,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
@@ -1160,10 +1161,14 @@ int linenoiseHistorySetMaxLen(int len) {
|
||||
/* Save the history in the specified file. On success 0 is returned
|
||||
* otherwise -1 is returned. */
|
||||
int linenoiseHistorySave(const char *filename) {
|
||||
FILE *fp = fopen(filename,"w");
|
||||
mode_t old_umask = umask(S_IXUSR|S_IRWXG|S_IRWXO);
|
||||
FILE *fp;
|
||||
int j;
|
||||
|
||||
fp = fopen(filename,"w");
|
||||
umask(old_umask);
|
||||
if (fp == NULL) return -1;
|
||||
chmod(filename,S_IRUSR|S_IWUSR);
|
||||
for (j = 0; j < history_len; j++)
|
||||
fprintf(fp,"%s\n",history[j]);
|
||||
fclose(fp);
|
||||
|
||||
+1
-1
@@ -676,7 +676,7 @@ void syncCommand(client *c) {
|
||||
/* Target is disk (or the slave is not capable of supporting
|
||||
* diskless replication) and we don't have a BGSAVE in progress,
|
||||
* let's start one. */
|
||||
if (server.aof_child_pid != -1) {
|
||||
if (server.aof_child_pid == -1) {
|
||||
startBgsaveForReplication(c->slave_capa);
|
||||
} else {
|
||||
serverLog(LL_NOTICE,
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
#define REDIS_VERSION "3.2.2"
|
||||
#define REDIS_VERSION "3.2.3"
|
||||
|
||||
Reference in New Issue
Block a user