diff options
author | Milan Bouchet-Valat <nalimilan@club.fr> | 2010-02-07 21:29:32 +0100 |
---|---|---|
committer | Milan Bouchet-Valat <nalimilan@club.fr> | 2010-02-08 23:40:52 +0100 |
commit | d94c927ce12ee68fa9c90d56b3898b017941787b (patch) | |
tree | fb7e111a58fb24c63ce9ce65291570783d0424d2 | |
parent | d8bb24fac0179becffd299b2e7b7f6f9941f127f (diff) |
Add field for face in UserConfig
This field will be used later to set the path to a file containing the image to be used as a face (~/.face). For now it's just a placeholder to avoid changing the protocol again.
-rw-r--r-- | UserConfig.pm | 4 | ||||
-rw-r--r-- | Users/Users.pm | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/UserConfig.pm b/UserConfig.pm index a50f10e..e0185a7 100644 --- a/UserConfig.pm +++ b/UserConfig.pm @@ -32,9 +32,9 @@ my $OBJECT_PATH = "$Utils::Backend::DBUS_PATH/$OBJECT_NAME"; # base user struct, also used in UsersConfig # variables: login, password, UID, main group GID, GECOS fields, home, shell, -# password flags, encrypted home, home dir flags, locale, location +# password flags, encrypted home, home dir flags, locale, location, face our $USER_FORMAT = [ "struct", "string", "string", "uint32", "uint32", [ "array", "string" ], "string", "string", - "int32", "bool", "int32", "string", "string" ]; + "int32", "bool", "int32", "string", "string", "string" ]; sub new { diff --git a/Users/Users.pm b/Users/Users.pm index 24b806e..523aa2a 100644 --- a/Users/Users.pm +++ b/Users/Users.pm @@ -90,6 +90,7 @@ my $ENC_HOME = $i++; my $HOME_FLAGS = $i++; my $LOCALE = $i++; my $LOCATION = $i++; +my $FACE = $i++; %login_defs_prop_map = (); %profiles_prop_map = (); @@ -380,6 +381,7 @@ sub get $users_hash{$login}[$HOME_FLAGS] = 0; $users_hash{$login}[$LOCALE] = ""; $users_hash{$login}[$LOCATION] = ""; + $users_hash{$login}[$FACE] = ""; } &Utils::File::close_file ($ifh); |