[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7575) Fixed send_cli_cred on platforms that do not support such functions

Full_Name: Ted C. Cheng
Version: HEAD
OS: Solaris 8
URL: https://dl.dropboxusercontent.com/u/94235048/fix_send_cli_cred.patch
Submission from: (NULL) (

Importing fix from Symas #2230:

On platforms, such as Solaris 8, that do not support functions for getting
client credential, client sends a message and fd for server to derive euid/egid.
The server-side logic for deriving client credential was buggy.

This patch introduces sockaddr_un_cmp() to compare the socket path names,
ignoring redundant "/" in the path, and only checks S_IFIFO mode. This patch has
been tested on Solaris 8 and regression-tested fine on Solaris 10.