И это всё МОЁ

Победил тут мимо проходя...

Дарю инструкцию для интересующихся:

$ mkdir -p ${HOME}/Origin

В директории Origin создаём файл hchmod.c с содержимым:

#include <dlfcn.h>
#include <sys/stat.h>
#include <unistd.h>

int (*mkdir_real)(const char *pathname, mode_t mode) = NULL;
int (*chmod_real)(const char *pathname, mode_t mode) = NULL;
int (*fchmod_real)(int fd, mode_t mode) = NULL;

int mkdir(const char *pathname, mode_t mode){
if ( mkdir_real == NULL ){
mkdir_real = dlsym(RTLD_NEXT,"mkdir";);
}
return (mkdir_real(pathname, mode | S_IWUSR ));
}

int chmod(const char *pathname, mode_t mode){
if ( chmod_real == NULL ){
chmod_real = dlsym(RTLD_NEXT,"chmod";);
}
return (chmod_real(pathname, mode | S_IWUSR ));
}

int fchmod(int fd, mode_t mode){
if ( fchmod_real == NULL ){
fchmod_real = dlsym(RTLD_NEXT,"fchmod";);
}
return (fchmod_real(fd, mode | S_IWUSR ));
}

Собираем:
$ cd ${HOME}/Origin
$ gcc -shared -fPIC -D_GNU_SOURCE -ldl -o hchmod.so hchmod.c

Качаем и устанавливаем Origin

$ wget download.dm.origin.com/origin/live/OriginSetup....
...
$ export LD_PRELOAD=${HOME}/Origin/hchmod.so
$ wine OriginSetup.exe








 , , ,