Development

Changeset 10741

You must first sign up to be able to contribute.

Changeset 10741

Show
Ignore:
Timestamp:
08/07/08 13:37:08 (4 months ago)
Author:
noel
Message:

[1.0] fixed _safe_cache_remove() generates 'No such file' error and fails (closes #4057)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/data/tasks/sfPakeMisc.php

    r9893 r10741  
    200200 
    201201  // create a lock file 
    202   $lock_file = $sf_root_dir.'/'.$lock_name.'-cli.lck'; 
     202  $lock_file = $sf_root_dir.DIRECTORY_SEPARATOR.$lock_name.'-cli.lck'; 
    203203  pake_touch($lock_file, ''); 
    204204 
    205205  // change mode so the web user can remove it if we die 
    206   pake_chmod($lock_file, '', 0777); 
     206  pake_chmod($lock_file, $sf_root_dir, 0777); 
    207207 
    208208  // remove cache files 
    209   pake_remove($finder, $sf_root_dir.'/'.$sub_dir); 
     209  pake_remove($finder, $sf_root_dir.DIRECTORY_SEPARATOR.$sub_dir); 
    210210 
    211211  // release lock