diff --git a/History.md b/History.md index 6efe8b5d..e5f3bc8d 100644 --- a/History.md +++ b/History.md @@ -1,7 +1,8 @@ -18 Sep 2014, version 0.11.2 +18 Sep 2014, version 0.11.3 -- fix 500 error in adduser in sinopia-htpasswd (issue [#121](https://github.com/rlidwka/sinopia/issues/121)) +- fix 500 error in adduser function in sinopia-htpasswd (issue [#121](https://github.com/rlidwka/sinopia/issues/121)) +- fix fd leak in authenticate function in sinopia-htpasswd (issue [#116](https://github.com/rlidwka/sinopia/issues/116)) 15 Sep 2014, version 0.11.1 diff --git a/node_modules/sinopia-htpasswd/index.js b/node_modules/sinopia-htpasswd/index.js index e9816295..eb52c7f5 100644 --- a/node_modules/sinopia-htpasswd/index.js +++ b/node_modules/sinopia-htpasswd/index.js @@ -115,7 +115,10 @@ HTPasswd.prototype._reload = function(callback) { if (err) return callback(err) if (bytesRead != st.size) return callback(new Error('st.size != bytesRead')) self._users = utils.parse_htpasswd(buffer.toString('utf8')) - callback() + + fs.close(fd, function() { + callback() + }) }) }) }) diff --git a/node_modules/sinopia-htpasswd/package.json b/node_modules/sinopia-htpasswd/package.json index 9a5dbf82..b57acff3 100644 --- a/node_modules/sinopia-htpasswd/package.json +++ b/node_modules/sinopia-htpasswd/package.json @@ -1,6 +1,6 @@ { "name" : "sinopia-htpasswd", - "version" : "0.4.2", + "version" : "0.4.3", "description" : "auth plugin for sinopia supporting htpasswd format", "author" : { "name": "Alex Kocharin" @@ -32,7 +32,7 @@ "crypt3": ">=0.1.5 <1.0.0-0", "fs-ext": "*" }, - "_id" : "sinopia-htpasswd@0.4.2", - "_shasum" : "22305fec9de2f0a672158c45fc5a02165ef49849", + "_id" : "sinopia-htpasswd@0.4.3", + "_shasum" : "f69cbfe9bd347359a0ed591f66f08a60cc4ee982", "_from" : "sinopia-htpasswd@>= 0.4.2" } diff --git a/package.yaml b/package.yaml index 33af7aea..1fc5021e 100644 --- a/package.yaml +++ b/package.yaml @@ -43,7 +43,7 @@ dependencies: onscroll: '>=0.0.3 <1.0.0-0' transition-complete: '>=0.0.2 <1.0.0-0' helpers.less: 'git://github.com/bpeacock/helpers.less.git' - sinopia-htpasswd: '>= 0.4.2' + sinopia-htpasswd: '>= 0.4.3' http-errors: '~1.2.0' # ferver # TODO: not really needed