Hallo Clint!

Clint Adams schrieb am Donnerstag, den 24. Dezember 2009:

> On Wed, Dec 23, 2009 at 03:47:10PM +0100, Christian Brabandt wrote:
> > I have to add, this only affects cpio-2.9 from lenny. My C-Skills are a
> > little bit rusty, but the following patch seems to work for me:
> 
> Oh, well, I'm afraid there's not much I can do for lenny but create an
> unofficial backport of 2.10.  Would that help?

Yes, very much.

> 
> > chrisbra t41:~/source/cpio/cpio-2.9/src [1081:1]% diff -Nu userspec.c{.old,}
> > --- userspec.c.old      2009-12-23 15:40:09.000000000 +0100
> > +++ userspec.c  2009-12-23 15:40:21.000000000 +0100
> > @@ -108,7 +108,7 @@
> >    char *spec;                  /* A copy we can write on.  */
> >    struct passwd *pwd;
> >    struct group *grp;
> > -  char *g, *u, *separator;
> > +  unsigned char *g, *u, *separator;
> >    char *groupname;
> 
> I'm confused; what is expecting those characters to be unsigned?

A far lines later, you'll find that piece of code:
f (!isnumber_p (u))
    error_msg = _("invalid user");

and isnumber_p fails, because u was negative in my case.
             

regards,
Christian
-- 




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to