gnu: file: Add 5.20 as a replacement--fixes CVE-2014-3710.

* gnu/packages/file.scm (file)[replacement]: New field.
  (file/fixed): New variable.
This commit is contained in:
Ludovic Courtès 2014-11-13 11:10:51 +01:00
parent 7f614a747c
commit 3940c5cab3
1 changed files with 13 additions and 0 deletions

View File

@ -26,6 +26,7 @@
(define-public file (define-public file
(package (package
(replacement file/fixed)
(name "file") (name "file")
(version "5.19") (version "5.19")
(source (origin (source (origin
@ -44,3 +45,15 @@ extensions to tell you the type of a file, but looks at the actual contents
of the file.") of the file.")
(license bsd-2) (license bsd-2)
(home-page "http://www.darwinsys.com/file/"))) (home-page "http://www.darwinsys.com/file/")))
(define file/fixed ;fix for CVE-2014-3710
(let ((real-version "5.20"))
(package (inherit file)
(source (origin
(method url-fetch)
(uri (string-append "ftp://ftp.astron.com/pub/file/file-"
real-version ".tar.gz"))
(sha256
(base32
"0iyjs9z8kp43gz7gva4j67h4p0n53f7q8x3ibai9s01sp3xnphsv"))))
(replacement #f))))