mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Fixed authenticaton to database != 0
PR: ports/164295 Submitted by: maintainer Approved by: gabor (maintainer, implicit)
This commit is contained in:
parent
cd77da1c71
commit
80b3fb6c85
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289434
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= godis
|
||||
PORTVERSION= 20110803
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= LOCAL/jlaffaye
|
||||
|
||||
|
24
databases/godis/files/patch-conn.go
Normal file
24
databases/godis/files/patch-conn.go
Normal file
@ -0,0 +1,24 @@
|
||||
--- conn.go.orig 2011-09-04 22:00:03.000000000 +0200
|
||||
+++ conn.go 2012-01-18 21:31:25.000000000 +0100
|
||||
@@ -342,8 +342,8 @@
|
||||
}
|
||||
|
||||
func (cc *conn) configConn(db int, password string) os.Error {
|
||||
- if db != 0 {
|
||||
- buf := [][]byte{[]byte("SELECT"), []byte(strconv.Itoa(db))}
|
||||
+ if password != "" {
|
||||
+ buf := [][]byte{[]byte("AUTH"), []byte(password)}
|
||||
_, err := cc.rwc.Write(buildCmd(buf))
|
||||
|
||||
if err != nil {
|
||||
@@ -356,8 +356,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if password != "" {
|
||||
- buf := [][]byte{[]byte("AUTH"), []byte(password)}
|
||||
+ if db != 0 {
|
||||
+ buf := [][]byte{[]byte("SELECT"), []byte(strconv.Itoa(db))}
|
||||
_, err := cc.rwc.Write(buildCmd(buf))
|
||||
|
||||
if err != nil {
|
Loading…
Reference in New Issue
Block a user