Re: more user_from_uid(3)

2018-09-17 Thread Todd C. Miller
On Tue, 18 Sep 2018 03:30:39 +0200, Theo Buehler wrote: > I don't mind the slight change of behavior in write(1) in an unlikely > branch, but how about doing this instead? > > if ((login = user_from_uid(myuid, 1)) == NULL) > login = "???"; > > either way ok.

Re: more user_from_uid(3)

2018-09-17 Thread Theo Buehler
On Mon, Sep 17, 2018 at 11:14:40AM -0600, Todd C. Miller wrote: > Two more pontential places where user_from_uid(3) makes sense. > These were in my large diff but got lost chopping it up into smaller > pieces. I don't mind the slight change of behavior in write(1) in an unlikely branch, but how

more user_from_uid(3)

2018-09-17 Thread Todd C. Miller
Two more pontential places where user_from_uid(3) makes sense. These were in my large diff but got lost chopping it up into smaller pieces. - todd Index: usr.bin/write/write.c === RCS file: /cvs/src/usr.bin/write/write.c,v

Re: More user_from_uid(3) and group_from_gid(3)

2018-09-15 Thread Theo Buehler
On Thu, Sep 13, 2018 at 11:02:17AM -0600, Todd C. Miller wrote: > Use user_from_uid(3) and group_from_gid(3) in a few more places > that do repeated lookups. ok tb

More user_from_uid(3) and group_from_gid(3)

2018-09-13 Thread Todd C. Miller
Use user_from_uid(3) and group_from_gid(3) in a few more places that do repeated lookups. - todd Index: sbin/fsck_ext2fs/inode.c === RCS file: /cvs/src/sbin/fsck_ext2fs/inode.c,v retrieving revision 1.27 diff -u -p -u -r1.27