diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2007-11-23 01:27:11 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2007-12-12 01:22:02 +0100 |
commit | ca17b9812b8cbde855917e676c7d2b0ba6b191b8 (patch) | |
tree | 36fe3b849034c8a352e97de0063c87e0d48647a9 /Users | |
parent | e07b5dcee02d5c40faf3f3c954d7b4407035aabb (diff) |
Add getFiles base in StbObject. Implement getFiles for UserConfig and UsersConfig.
* StbObject.pm: Add DBus method there.
* Users/Users.pm: turns out that get_files was already there, move it after the other main methods.
* UserConfig.pm, UsersConfig.pm: implement getFiles().
Diffstat (limited to 'Users')
-rw-r--r-- | Users/Users.pm | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Users/Users.pm b/Users/Users.pm index 03d77a2..6703d0f 100644 --- a/Users/Users.pm +++ b/Users/Users.pm @@ -436,17 +436,6 @@ sub get return \@users; } -sub get_files -{ - my @arr; - - push @arr, @passwd_names; - push @arr, @shadow_names; - - return \@arr; -} - - sub del_user { my ($user) = @_; @@ -804,4 +793,14 @@ sub set_user } } +sub get_files +{ + my ($arr); + + push @$arr, @passwd_names; + push @$arr, @shadow_names; + + return $arr; +} + 1; |