# HG changeset patch # User Paul Eggert # Date 1061015129 0 # Node ID ff249a314eacd4e4ac9cd2a7315e27596d77c528 # Parent bdca64d748316dde8f2684fe38fc4dad37b6a0a5 Accept `.' as a separator only in pre-POSIX-200112 mode. diff --git a/lib/userspec.c b/lib/userspec.c --- a/lib/userspec.c +++ b/lib/userspec.c @@ -51,6 +51,7 @@ # include #endif +#include "posixver.h" #include "xalloc.h" #include "xstrtol.h" @@ -179,7 +180,7 @@ separator = strchr (spec, ':'); /* If there is no colon, then see if there's a `.'. */ - if (separator == NULL) + if (separator == NULL && posix2_version () < 200112) { dot = strchr (spec, '.'); /* If there's no colon but there is a `.', then first look up the diff --git a/modules/userspec b/modules/userspec --- a/modules/userspec +++ b/modules/userspec @@ -8,6 +8,7 @@ Depends-on: alloca +posixver xalloc xstrtol strdup