Fixed resource copy on GNU/Linux