Share

LDAP shell

Tracker: Patches

5 rename and mkdir functions conflict with perl builtins. - ID: 965818
Last Update: Attachment added ( pok )

The ldapsh functions rename and mkdir conflict with the
perl builtin functions for no good reason. The
functionality is already available in ldapsh under
different names.

I was burnt by this while upgrading ldapsh at a client
installation. The client has a largish user
adminstration application built on top of ldapsh, which
also does things like create home directories and
distributing automaps.

Yes, I know we can use CORE::<function> to get the
right one for manipulating the file system, but I think
it's a bad idea in principle to override the builtin
functions of perl. Who knows which function will be
overridden next, and it quickly becomes unfeasible to
prepend CORE:: to every function call to future-proof
the code.

This patch removes the offending functions from LDAPsh.'

Comments?


Peder O. Klingenberg ( pok ) - 2004-06-03 14:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
drop-rename-mkdir.patch Download

Change ( 1 )

Field Old Value Date By
File Added 89403: drop-rename-mkdir.patch 2004-06-03 14:55 pok