Document may_change_field().
This commit is contained in:
1 parent
3d04ff4037
commit
ca468cb988
2 files changed
+11
-1
No files matched your search
+10
-1
@@ -105,7 +105,16 @@ static void usage (void)
|
||||
exit (E_USAGE);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* may_change_field - indicate if the user is allowed to change a given field
|
||||
* of her gecos information
|
||||
*
|
||||
* root can change any field.
|
||||
*
|
||||
* field should be one of 'f', 'r', 'w', 'h'
|
||||
*
|
||||
* Return 1 if the user can change the field and 0 otherwise.
|
||||
*/
|
||||
static int may_change_field (int field)
|
||||
{
|
||||
const char *cp;
|
||||
|
||||
Reference in new issue
Block a user