git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [patch] fixup GECOS handling

From
MSMartin Schlemmer <azarah@nosferatu.za.org>
Date
Apr 23, 2005, 23:49 UTC
Message-ID
<1114300156.27940.22.camel@nosferatu.lan>
In-Reply-To
<20050423233821.GN13222@pasky.ji.cz>
On Sun, 2005-04-24 at 01:38 +0200, Petr Baudis wrote:
Show 24 quoted lines
> Dear diary, on Fri, Apr 22, 2005 at 09:06:43PM CEST, I got a letter
> where Martin Schlemmer <azarah@nosferatu.za.org> told me that...
> > @@ -311,6 +296,17 @@
> >         if (!pw)
> >                 die("You don't exist. Go away!");
> >         realgecos = pw->pw_gecos;
> > +       /*
> > +        * The GECOS fields are seperated via ',' on Linux, FreeBSD, etc,
> > +        * and ';' on AIX.
> > +        */
> > +#if defined(__aix__)
> > +       if (strchr(realgecos, ';'))
> > +               *strchr(realgecos, ';') = 0;
> > +#else
> > +       if (strchr(realgecos, ','))
> > +               *strchr(realgecos, ',') = 0;
> > +#endif
> >         len = strlen(pw->pw_name);
> >         memcpy(realemail, pw->pw_name, len);
> >         realemail[len] = '@';
> 
> I'm confused, what does this has to do with AIX? Do we even have / can
> expect to have any major AIX users?
> 
Given.
Show 7 quoted lines
> I'm not too happy with this, I have to say. It seems it won't do always
> the right thing anyway. I would still favour the approach when you cut
> off everything after ';', and everything after ',' if no ';' is found.
> Seems simplest, safest, etc.
> 
> Tell me about anyone who has a semicolon in his realname.
> 

Point I guess is still that the only valid delimiter on linux is ',', and the only reason for the ';' was because of some aix/whatever user saying that is a delimiter as well. But like I said: cat $this

> /dev/null ... This is basically the same type of discussion as the
hash collision one, and I'm sure we all have better things to do.
Thanks,
-- 
Martin Schlemmer
Previous: Petr BaudisNext: Kyle Hayes
Message 13 of 16 in “fixup GECOS handling”
  1. fixup GECOS handlingMartin Schlemmer, Apr 18, 2005
  2. David WoodhouseApr 18, 2005
  3. Martin SchlemmerApr 18, 2005
  4. fixup GECOS handlingMartin Schlemmer, Apr 22, 2005
  5. Kyle HayesApr 22, 2005
  6. Martin SchlemmerApr 22, 2005
  7. Petr BaudisApr 22, 2005
  8. Martin SchlemmerApr 22, 2005
  9. Kyle HayesApr 22, 2005
  10. Martin SchlemmerApr 22, 2005
  11. Kyle HayesApr 22, 2005
  12. Petr BaudisApr 23, 2005
  13. Martin SchlemmerApr 23, 2005
  14. Kyle HayesApr 22, 2005
  15. Andy IsaacsonApr 22, 2005
  16. Kyle HayesApr 25, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.