feat(vars): $UID
This commit is contained in:
parent
7bcf48f63e
commit
67ffea83d3
1 changed files with 5 additions and 0 deletions
|
|
@ -26,7 +26,12 @@ struct hash_map *vars_init(void)
|
|||
{
|
||||
struct hash_map *vars = hash_map_init(VARS_INITIAL_SIZE);
|
||||
if (vars != NULL)
|
||||
{
|
||||
vars_default(vars);
|
||||
char uid_str[11];
|
||||
int_to_str((int)getuid(), uid_str);
|
||||
set_var_copy(vars, "UID", uid_str);
|
||||
}
|
||||
return vars;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue