Basic Solution File System - BSFS
Loading...
Searching...
No Matches
whoami.c File Reference

Implements whoami command to show uid/gid and umask. More...

Functions

int whoami_cmd (FILE *disk, superblock_t *sb, char **args)
 Print current session uid, gid and umask.

Detailed Description

Implements whoami command to show uid/gid and umask.

Function Documentation

◆ whoami_cmd()

int whoami_cmd ( FILE * disk,
superblock_t * sb,
char ** args )

Print current session uid, gid and umask.

Reads the API session identity and umask and prints them in a compact form.

Parameters
diskOpen filesystem image (unused).
sbLoaded superblock (unused).
argsargv-like vector (unused).
Returns
1 to continue the browser loop.