ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Urlader/Urlader.pm
(Generate patch)

Comparing Urlader/Urlader.pm (file contents):
Revision 1.7 by root, Mon Feb 6 21:57:48 2012 UTC vs.
Revision 1.12 by root, Mon Jun 10 06:16:16 2013 UTC

196package Urlader; 196package Urlader;
197 197
198use common::sense; 198use common::sense;
199 199
200BEGIN { 200BEGIN {
201 our $VERSION = '0.2'; 201 our $VERSION = '1.01';
202 202
203 use XSLoader; 203 use XSLoader;
204 XSLoader::load __PACKAGE__, $VERSION; 204 XSLoader::load __PACKAGE__, $VERSION;
205} 205}
206 206
254will be created if necessary). If C<$exclusive> is true, then it tries to 254will be created if necessary). If C<$exclusive> is true, then it tries to
255acquire an exclusive lock, otherwise the lock will be shared. If C<$wait> 255acquire an exclusive lock, otherwise the lock will be shared. If C<$wait>
256is true, then it will wait until the lock can be acquired, otherwise it 256is true, then it will wait until the lock can be acquired, otherwise it
257only attempts to acquire it and returns immediately if it can't. 257only attempts to acquire it and returns immediately if it can't.
258 258
259If successful it returns a lock object - the lock will be given up 259If successful it returns a lock object - the lock will be given up when
260when the lock object is destroyed. 260the lock object is destroyed or when the process exits (even on a crash)
261and has a good chance of working on network drives as well.
261 262
262If the lock could not be acquired, C<undef> is returned. 263If the lock could not be acquired, C<undef> is returned.
263 264
264This function will probably go awway in the future, but is provided to 265This function is provided to assist applications that want to clean up old
265assist applications that want to clean up old versions, see "TIPS AND 266versions, see "TIPS AND TRICKS", below.
266TRICKS", below.
267 267
268=cut 268=cut
269 269
2701; 2701;
271 271
275 275
276=over 4 276=over 4
277 277
278=item Gathering files 278=item Gathering files
279 279
280Gathering all the files needed for distribution cna be a big 280Gathering all the files needed for distribution can be a big
281problem. Right now, Urlader does not assist you in this task in any way, 281problem. Right now, Urlader does not assist you in this task in any way,
282however, just like perl source stripping, it is planned to unbundle the 282however, just like perl source stripping, it is planned to unbundle the
283relevant technology from B<staticperl> (L<http://staticperl.plan9.de>) for 283relevant technology from B<staticperl> (L<http://staticperl.plan9.de>) for
284use with this module. 284use with this module.
285 285
399 399
400The urlader executable itself does not support setuig/setgid operation, or 400The urlader executable itself does not support setuig/setgid operation, or
401running with elevated privileges - it does no input sanitisation, and is 401running with elevated privileges - it does no input sanitisation, and is
402trivially exploitable. 402trivially exploitable.
403 403
404=head1 SEE ALSO
405
406F<< L<urlader-util> >>(1), used to pack urlader payloads.
407
404=head1 AUTHOR 408=head1 AUTHOR
405 409
406 Marc Lehmann <schmorp@schmorp.de> 410 Marc Lehmann <schmorp@schmorp.de>
407 http://home.schmorp.de/ 411 http://home.schmorp.de/
408 412

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines