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.
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
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
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
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