mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix compile warning in nametouid().
(This used to be commit deb6dfb4e0
)
This commit is contained in:
parent
5be247c62c
commit
069f1b5ff2
@ -2509,7 +2509,7 @@ turn a user name into a uid
|
||||
********************************************************************/
|
||||
BOOL nametouid(const char *name, uid_t *uid)
|
||||
{
|
||||
struct passwd *pass = Get_Pwnam(name, False);
|
||||
struct passwd *pass = Get_Pwnam((char *)name, False);
|
||||
if (pass)
|
||||
{
|
||||
*uid = pass->pw_uid;
|
||||
|
Loading…
Reference in New Issue
Block a user