Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Christopher J. Ruwe
On Fri, 21 Oct 2011 18:53:33 +0200 Christopher J. Ruwe c...@cruwe.de wrote: [...] I have tried to follow the suggestion from the comment by modifiying the else-statement thus: } else { struct passwd *trgpwd; if (!(trgpwd = GETPWNAM(arg-val))) errx(EX_DATAERR, User %s does not

Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Fabian Keil
Christopher J. Ruwe c...@cruwe.de wrote: On Fri, 21 Oct 2011 18:53:33 +0200 Christopher J. Ruwe c...@cruwe.de wrote: [...] I have tried to follow the suggestion from the comment by modifiying the else-statement thus: } else { struct passwd *trgpwd; if (!(trgpwd =

Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Christopher J. Ruwe
On Sat, 22 Oct 2011 16:45:08 +0200 Fabian Keil freebsd-lis...@fabiankeil.de wrote: Christopher J. Ruwe c...@cruwe.de wrote: On Fri, 21 Oct 2011 18:53:33 +0200 Christopher J. Ruwe c...@cruwe.de wrote: [...] I have tried to follow the suggestion from the comment by modifiying

Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Fabian Keil
Christopher J. Ruwe c...@cruwe.de wrote: On Sat, 22 Oct 2011 16:45:08 +0200 Fabian Keil freebsd-lis...@fabiankeil.de wrote: Christopher J. Ruwe c...@cruwe.de wrote: On Fri, 21 Oct 2011 18:53:33 +0200 Christopher J. Ruwe c...@cruwe.de wrote: As I stil do not know why the latter

Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Frank Shute
On Fri, Oct 21, 2011 at 06:53:33PM +0200, Christopher J. Ruwe wrote: To improve on my C and to learn something about systems programming, I have begun to pick out bite-size bits from the bin-PRs. Currently, I am dispairing about bin/149972, which is about 1) adding error handling to pw being

trying to learn systems programming, fear I have not understood and thus messed up

2011-10-21 Thread Christopher J. Ruwe
To improve on my C and to learn something about systems programming, I have begun to pick out bite-size bits from the bin-PRs. Currently, I am dispairing about bin/149972, which is about 1) adding error handling to pw being invoced pw -u username and 2) trying to get a uid from the (incorrectly)