Gentoo Archives: gentoo-dev

From: Peter Ruskin <aoyu93@×××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Re: coreutils >=5.0.1 breaks chown user.group on new systems
Date: Tue, 07 Oct 2003 21:15:05
Message-Id: 200310072215.47410.aoyu93@dsl.pipex.com
In Reply to: Re: [gentoo-dev] Re: coreutils >=5.0.1 breaks chown user.group on new systems by Andrew Gaffney
1 On Tuesday 07 Oct 2003 21:59, Andrew Gaffney wrote:
2 > John Mylchreest wrote:
3 > >>Let's say you've got a file, 'foo' that contains
4 > >>----CUT----
5 > >>chown root.root foo
6 > >>----CUT----
7 > >>
8 > >># echo "`cat foo | cut -d "." -f1`:`cat foo | cut -d "." -f2`"
9 > >>
10 > >>seems to work on the simple case.
11 > >>
12 > >>I'm sure someone can come up with a regex to match the
13 > >> dotted-chown.
14 > >
15 > > this is easily fixed using a simple sed, however when it comes down
16 > > to the actual ebuilds, this isnt a possibility.
17 >
18 > Why not?
19
20 Well, for a start it probably isn't always root.root, so how are you
21 going to find a regex for all the cases? You'd have to first look at
22 all the chown entries (may even be more than one per line) and then
23 decide how to handle it.
24
25 Peter
26 --
27 ======================================================================
28 Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,
29 2.4.22_pre2-gss)
30 i686 AMD Athlon(tm) XP 3200+
31 ======================================================================
32
33
34 --
35 gentoo-dev@g.o mailing list