|
|
Sponsor |
Re: User authentication to services: msg#00037freedesktop.dbus
Hi, Thanks for the patch, looks good overall. Some small comments: - D-BUS code generally avoids assignment and declaration at once, i.e.: char *service; service = NULL; is preferred. - I'd probably capitalize all of "UID" - the BaseName property replicates the functionality of the GetServiceOwner, so we need to decide between these two. - bus_connection_get_name() should not be able to return NULL for a connection that owns a service, and we know this one does. So you should _dbus_assert (base_name != NULL) rather than setting an error in that case I'm pretty sure. - the name "GetServiceProperty" isn't a bit funny; it's a property of the connection, not the service. Suggest just "GetProperty" - dbus_bus_get_service_uid() should be consistent with dbus_connection_get_unix_user() (in naming, and in dbus_uint32_t vs. unsigned long) - though I'm not sure we'll keep all of dbus-bus.[ch] in the long run, this seems fine for now - can't return -1 to uint32 without a cast; just use DBUS_UID_UNSET probably Thanks, Havoc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: User authentication to services, Kay Sievers |
|---|---|
| Next by Date: | Re: User authentication to services, Kay Sievers |
| Previous by Thread: | Re: User authentication to services, Kay Sievers |
| Next by Thread: | Re: User authentication to services, Kay Sievers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|