summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common/System.pm
Commit message (Collapse)AuthorAgeFilesLines
* Make the is_real_(user|group) functions take just a nameColin Guthrie2014-11-171-13/+16
| | | | | | | | | While this may cause a few unnecessary getpwnam/getgrnam calls this makes the API much simpler for using externally and means we cannot be called with bogus information for u/gid, homedir and shell and such like. mga#14346
* Add an is_real_group APIColin Guthrie2014-11-171-1/+27
| | | | | | | | | | | | | This is similar to the is_real_user() API added in the previous commit and will be useful in higher level code which might need to filter the display appropriately. Here we use the heuristic that if the GID is in the range 500-999 then we check to see whether the group is the primary group of a user with the same name (and the user is considered a 'real' user) or that the group has any member who is considered 'real'. mga#14346
* Fix list_users() to filter on new uid range.Colin Guthrie2014-11-171-5/+21
| | | | | | | | | | | | | | | The first assigned uid has now changed to 1000 (from 500) to fall in line with most other distros. This number seems hardcoded in a few places to try to do a little bit of refactoring and add a new exported function, is_real_user(), to try and centralise this logic a little. This should ultimately fix the likes of drakboot's autologin user list. mga#14346
* whereis_binary: shows bogus callerThierry Vignaud2014-06-211-1/+2
|
* document that typeFromMagic() accepts function refsThierry Vignaud2012-12-071-0/+9
|
* kill comment obsolet since long...Thierry Vignaud2011-12-191-2/+0
|
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-04-121-1/+3
| | | | | | | | | | | | with Mageia. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r870 | blino | 2011-04-12 00:22:14 +0100 (Tue, 12 Apr 2011) | 1 line import perl-MDK-Common ------------------------------------------------------------------------
* perl_checker cleanupsThierry Vignaud2010-10-241-2/+2
|
* fix whereis_binary to work on absolute symlinks inside chroot1.2.24Pascal Terjan2010-01-121-1/+21
|
* get available size of requested partition not / in dfPascal Terjan2009-12-141-1/+1
|
* use a more portable df()Thierry Vignaud2009-10-071-11/+3
|
* fix df on mips, statfs structure is different from x86 (from Arnaud Patard)Olivier Blin2009-10-071-1/+7
|
* Correctly handling '#' when loading shell variables (#50670, #51457).Eugeni Dodonov2009-06-091-3/+3
|
* decode ' inside '' properly in getVarsFromShPascal Terjan2009-04-141-1/+6
|
* add spaces to please perl_checkerPascal Terjan2009-03-111-3/+3
|
* - quote correctly ' inside ''Pascal Terjan2009-03-111-1/+1
|
* protect various chars in setExportedVarsInSh and setExportedVarsInCshPascal Terjan2009-03-101-12/+14
|
* - protect ;<>&#[]~{}*? in setVarsInShPascal Terjan2009-02-021-1/+1
|
* protect parenthesis in setVarsInSh and drop dead code (#47298)Pascal Terjan2009-01-261-2/+1
|
* fix previous users list commitOlivier Blin2008-04-031-2/+3
|
* workaround glibc misconfiguration that make users listed twice (#34279)Olivier Blin2008-04-031-2/+2
|
* enhance fuzzy_pidofs() to handle kernel processesPascal Rigaux2007-05-301-1/+9
|
* re-sync after the big svn lossPascal Rigaux2007-04-251-0/+478