*** destinations.file.inc	Fri Nov 11 13:16:56 2011
--- destinations.file.inc.orig	Fri Nov 11 13:12:55 2011
*************** class backup_migrate_destination_files e
*** 37,43 ****
    
            // chmod, chown and chgrp the file if needed.
            if ($chmod = $this->settings('chmod')) {
!             if (!@drupal_chmod($filepath, octdec($chmod))) {
                _backup_migrate_message('Unable to set the file mode for: @file', array('@file' => $filepath), 'error');
              }
            }
--- 37,43 ----
    
            // chmod, chown and chgrp the file if needed.
            if ($chmod = $this->settings('chmod')) {
!             if (!@chmod($filepath, octdec($chmod))) {
                _backup_migrate_message('Unable to set the file mode for: @file', array('@file' => $filepath), 'error');
              }
            }
