myMPD
Internal API documentation
Loading...
Searching...
No Matches
passwd.c File Reference

Linux passwd helper functions. More...

#include "compile_time.h"
#include "src/lib/passwd.h"
#include "src/lib/log.h"
#include "src/lib/mem.h"
#include <unistd.h>
Include dependency graph for passwd.c:

Functions

struct passwd * get_passwd_entry (struct passwd *pwd, const char *username)
 

Detailed Description

Linux passwd helper functions.

Function Documentation

◆ get_passwd_entry()

struct passwd * get_passwd_entry ( struct passwd *  pwd,
const char *  username 
)

Gets the passwd entry for the supplied user.

Parameters
pwdstruct passwd to save the result
usernamethe username
Returns
pointer to passwd struct