summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common
Commit message (Collapse)AuthorAgeFilesLines
* perl_checker cleanupsThierry Vignaud2016-04-041-4/+4
|
* (setVarsInSh*) sort entriesThierry Vignaud2015-06-051-1/+1
| | | | thus it's easier to compare files when testing a tool
* 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
|
* refresh example in docThierry Vignaud2012-04-041-1/+1
|
* enable perl_checker to run hereThierry Vignaud2012-04-021-0/+1
|
* kill comment obsolet since long...Thierry Vignaud2011-12-191-2/+0
|
* substInFile: fix writing to zero-sized or nonexistent files (#460),Olivier Blin2011-04-121-3/+7
| | | | | | | eof does not seem to return true anymore for filehandles vivified through select (behavior change seems introduced by upstream perl commit 32e653230c7ccc7fa595b1ab68502c6eb66ff980)
* 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 ------------------------------------------------------------------------
* 1.2.27:1.2.27Eugeni Dodonov2011-02-021-1/+53
| | | | | | - added cp_afx option for copying files without crossing file systems
* Revert previous commit, easier to do it elsewhere.Eugeni Dodonov2011-02-021-6/+1
|
* 1.2.27:Eugeni Dodonov2011-02-021-1/+6
| | | | | | - add cp_afx command
* perl_checker cleanupsThierry Vignaud2010-10-241-2/+2
|
* append_to_file: better error message making easier to pinpoint actual place ↵Thierry Vignaud2010-10-241-1/+1
| | | | of error
* (substInFile) typo fixThierry Vignaud2010-10-241-1/+1
|
* (if_, if__) make easier to debug (#60153)Thierry Vignaud2010-07-201-2/+2
|
* (if__) more precise exception messageThierry Vignaud2010-07-201-1/+1
|
* preserve sockets and pipes in cp_af1.2.25Pascal Terjan2010-06-021-1/+1
|
* 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
|
* Update commentPascal Terjan2009-10-071-1/+1
|
* substInFile: do not unlink the symlink to recreate it later to the same targetPascal Terjan2009-10-071-4/+0
|
* (substInFile) call fsync() when editing a non empty fileThierry Vignaud2009-10-071-0/+2
|
* (substInFile) ensure we kept old file as file.bak until we wrote new fileThierry Vignaud2009-10-071-1/+2
|
* fix df on mips, statfs structure is different from x86 (from Arnaud Patard)Olivier Blin2009-10-071-1/+7
|
* - Call fsync after writing to ensure that files are writtenAurélien Lefebvre2009-08-131-3/+4
|
* 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
|
* - round_up(), round_down(): workaround "Illegal modulus zero" (#43165)Pascal Rigaux2008-10-011-2/+2
|
* - export cat_utf8() and cat_utf8_or_die()Pascal Rigaux2008-09-091-1/+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
|
* - modify before_leaving() to be compatible with perl 5.10.0Pascal Rigaux2008-01-181-12/+8
| | | | | | more precisely, rewrite add_f4before_leaving in a different way so that DESTROY is correctly called when it should
* (formatError) make it work with any modulesThierry Vignaud2007-09-041-1/+1
|
* (find_index) restore die (we should have used Carp::croak() insteadThierry Vignaud2007-08-091-2/+1
| | | | | but postponed this improvements after 2008.0)
* (formatError) make it safer (it now handles exceptions containing " at ")Thierry Vignaud2007-08-061-1/+1
|
* (find_index) pinpoint the actual bug (ie the caller)Thierry Vignaud2007-08-011-1/+2
| | | | | (all other die should probably be altered the same way)
* enhance fuzzy_pidofs() to handle kernel processesPascal Rigaux2007-05-301-1/+9
|
* re-sync after the big svn lossPascal Rigaux2007-04-257-0/+1822