Changeset 24626
- Timestamp:
- 07/10/2013 04:15:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
r18964 r24626 185 185 return false; 186 186 if ( ! $recursive || ! $this->is_dir($file) ) 187 return $this->run_command(sprintf('chgrp % o %s', $mode, escapeshellarg($file)), true);188 return $this->run_command(sprintf('chgrp -R % o %s', $mode, escapeshellarg($file)), true);187 return $this->run_command(sprintf('chgrp %s %s', escapeshellarg($group), escapeshellarg($file)), true); 188 return $this->run_command(sprintf('chgrp -R %s %s', escapeshellarg($group), escapeshellarg($file)), true); 189 189 } 190 190 … … 211 211 return false; 212 212 if ( ! $recursive || ! $this->is_dir($file) ) 213 return $this->run_command(sprintf('chown % o %s', $mode, escapeshellarg($file)), true);214 return $this->run_command(sprintf('chown -R % o %s', $mode, escapeshellarg($file)), true);213 return $this->run_command(sprintf('chown %s %s', escapeshellarg($owner), escapeshellarg($file)), true); 214 return $this->run_command(sprintf('chown -R %s %s', escapeshellarg($owner), escapeshellarg($file)), true); 215 215 } 216 216
Note: See TracChangeset
for help on using the changeset viewer.