changeset 4560:ff249a314eac

Accept `.' as a separator only in pre-POSIX-200112 mode.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 16 Aug 2003 06:25:29 +0000
parents bdca64d74831
children d39aff91eae4
files lib/userspec.c modules/userspec
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -51,6 +51,7 @@
 # include <unistd.h>
 #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
--- a/modules/userspec
+++ b/modules/userspec
@@ -8,6 +8,7 @@
 
 Depends-on:
 alloca
+posixver
 xalloc
 xstrtol
 strdup