Freebsd system(cp -rp)


#1

Hi !

Thanx for your cool software !!!

Here is my report for 1.0.6/freebsd:

perl -T and system() are a small problem, because the original system
source
would not copy templates into
/usr/local/rt/etc/templates/queues/myNewQueue

So firstofall I made a

chmod u+s /usr/local/rt/etc/templates/queues

, so directories are created (drwxr-xr-x) writable for user rt.

and then a changed the sources like seen below.

Its not nice, but now I am getting closer to beeing a happy user :wink:

Greetings,

Sascha

— snipp

system( “mkdir”, “$template_dir/queues/$in_queue_id” );
system( “cp” , “$rt_dir/lib/generic_templates/autoreply” ,
"$template_dir/queues/$in_queue_id/autoreply" );
system( “cp” , “$rt_dir/lib/generic_templates/correspondence” ,
"$template_dir/queues/$in_queue_id/correspondence" );
system( “cp” , “$rt_dir/lib/generic_templates/give” ,
"$template_dir/queues/$in_queue_id/give" );
system( “cp” , “$rt_dir/lib/generic_templates/steal” ,
"$template_dir/queues/$in_queue_id/steal" );
system( “cp” , “$rt_dir/lib/generic_templates/web_create” ,
"$template_dir/queues/$in_queue_id/web_create" );
system( “cp” , “$rt_dir/lib/generic_templates/comment” ,
"$template_dir/queues/$in_queue_id/comment" );
system( “cp” , “$rt_dir/lib/generic_templates/error” ,
"$template_dir/queues/$in_queue_id/error" );
system( “cp” , “$rt_dir/lib/generic_templates/respond” ,
"$template_dir/queues/$in_queue_id/respond" );
system( “cp” , “$rt_dir/lib/generic_templates/transaction” ,
"$template_dir/queues/$in_queue_id/transaction" );

system( “cp”,"-rp", “$rt_dir/lib/generic_templates” ,

“$template_dir/queues/$in_queue_id” );