From 94b2b48c19e045358cb46843211cb9c368fe2871 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 24 Apr 2015 12:32:27 +0400 Subject: [PATCH 1/3] =?UTF-8?q?reconnaitre=20la=20valeur=20sp=C3=A9ciale?= =?UTF-8?q?=20localhost=20pour=20check=5Fhostname()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/base | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ulib/base b/lib/ulib/base index 40c523d..711cb8b 100644 --- a/lib/ulib/base +++ b/lib/ulib/base @@ -1728,11 +1728,13 @@ function ensure_user() { } function check_hostname() { # Vérifier si le hostname courant est l'un des hôtes $1..* +# localhost matche toujours local userhost user host path for userhost in "$@"; do splitfsep "$userhost" : userhost path splituserhost "$userhost" user host - [ "$MYHOSTNAME" == "${host%%.*}" ] && return 0 + host="${host%%.*}" + [ "$host" == localhost -o "$host" == "$MYHOSTNAME" ] && return 0 done return 1 } From 8e03208d6a232a2dac8f0345f7d575a0e9dfa15a Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 24 Apr 2015 12:33:06 +0400 Subject: [PATCH 2/3] Init changelog & version 1.3.0 --- CHANGES.txt | 5 +++++ VERSION.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index e776dbf..f06196d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +## Version 1.3.0 du 24/04/2015-12:32 + +bdc6e9b Intégration de la branche localhost +94b2b48 reconnaitre la valeur spéciale localhost pour check_hostname() + ## Version 1.2.4 du 20/04/2015-17:55 988e045 bug diff --git a/VERSION.txt b/VERSION.txt index e8ea05d..f0bb29e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -1.2.4 +1.3.0 From 595465a8d9faca52dd7ec823b5d43cd85cf90ff1 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 24 Apr 2015 12:33:24 +0400 Subject: [PATCH 3/3] maj version ulib --- lib/ulib/.ulibver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ulib/.ulibver b/lib/ulib/.ulibver index 8253a0f..f23e110 100644 --- a/lib/ulib/.ulibver +++ b/lib/ulib/.ulibver @@ -1 +1 @@ -008002003 +008003000