diff -Nur e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore --- e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 1970-01-01 01:00:00.000000000 +0100 +++ e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 2014-05-04 14:46:42.497540282 +0200 @@ -0,0 +1 @@ +#added to create the /etc/e-smith/skel/ibay/tmp folder diff -Nur e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify --- e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify 2014-03-22 18:05:25.531733369 +0100 +++ e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify 2014-03-23 10:32:16.403155934 +0100 @@ -158,6 +158,10 @@ #-------------------------------------------------- # main directory is writeable only by root #-------------------------------------------------- +##create the upload_tmp_folder in the ibay if PHPTmpDir is set to 'enabled' +my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; +$tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; +mkdir $tmpdir unless (-d $tmpdir || $tmpdir eq "disabled"); chdir "/home/e-smith/files/ibays/$ibayName" or ( $x = 255, warn "Could not chdir to /home/e-smith/files/ibays/$ibayName" ); @@ -227,6 +231,13 @@ $experm |= $::fileperm; chmod $experm, $_; } + ##chmod 0700 ; chown www:www if upload_tmp_folder exists + my $tmpdirperm = (('/home/e-smith/files/ibays/' . $ibay->key . '/tmp')||''); + if ( -d $tmpdirperm) + { + system ('/bin/chown', '-R', 'www:www' , $tmpdirperm); + system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); + } } }