bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chown xxx.yyy, POSIX, and LSB


From: Jim Meyering
Subject: Re: chown xxx.yyy, POSIX, and LSB
Date: Mon, 23 Feb 2004 20:21:10 +0100

>> So I guess it'd be more like POSIXLY_INCORRECT :)
>
> Just to be clear about what I mean, here is the patch I intend to
> apply for the Fedora Core coreutils package:
>
> --- coreutils-5.2.0/lib/userspec.c.allow_old_options  2004-02-23 
> 16:51:00.000000000 +0000
> +++ coreutils-5.2.0/lib/userspec.c    2004-02-23 17:04:41.000000000 +0000
> @@ -171,7 +171,8 @@
>    separator = strchr (spec, ':');
>
>    /* If there is no colon, then see if there's a `.'.  */
> -  if (separator == NULL && posix2_version () < 200112)
> +  if (separator == NULL && (posix2_version () < 200112 ||
> +                         !getenv ("POSIXLY_CORRECT")))

Please consider using a different environment variable.
Setting POSIXLY_CORRECT should not make an otherwise-POSIX-conforming
program like GNU chown *non*conforming.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]