[systemd-devel] sd_get_uids gives a sorted list?

Lennart Poettering lennart at poettering.net
Wed Aug 1 10:41:40 PDT 2012


On Thu, 26.07.12 14:16, Stef Bon (stefbon at gmail.com) wrote:

> Hi,
> 
> I'm implementing the sd_get_uids function in my app. It basically
> reads the directory /run/systemd/users.
> I do not know, is this list already sorted?? this is the same question
> as is the readdir function "sort" sensitive?
> 
> If not, I have to add a sort function.

As mentioned already by others, this list is not sorted. I have now
added a comment to the man pages clarifying this.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list