[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] userspec support for POSIX 1003.1-2001 (merge from coreutil
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] userspec support for POSIX 1003.1-2001 (merge from coreutils) |
Date: |
15 Aug 2003 23:27:32 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this change from coreutils:
2003-08-15 Paul Eggert <address@hidden>
* modules/userspec: Depend on posixver.
2003-08-15 Jim Meyering <address@hidden>
* userspec.c: Include "posixver.h".
(parse_user_spec): Accept `.' as a separator only
in pre-POSIX-200112 mode.
Index: lib/userspec.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/userspec.c,v
retrieving revision 1.36
diff -p -u -r1.36 userspec.c
--- lib/userspec.c 29 May 2003 07:21:59 -0000 1.36
+++ lib/userspec.c 16 Aug 2003 06:21:07 -0000
@@ -51,6 +51,7 @@
# include <unistd.h>
#endif
+#include "posixver.h"
#include "xalloc.h"
#include "xstrtol.h"
@@ -179,7 +180,7 @@ parse_user_spec (const char *spec_arg, u
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
Index: modules/userspec
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/userspec,v
retrieving revision 1.3
diff -p -u -r1.3 userspec
--- modules/userspec 20 Jan 2003 10:02:38 -0000 1.3
+++ modules/userspec 16 Aug 2003 06:21:07 -0000
@@ -8,6 +8,7 @@ m4/userspec.m4
Depends-on:
alloca
+posixver
xalloc
xstrtol
strdup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] userspec support for POSIX 1003.1-2001 (merge from coreutils),
Paul Eggert <=