server: Open mem file for write when writing memory.
diff --git a/server/procfs.c b/server/procfs.c index f7d9073..5caa02b 100644 --- a/server/procfs.c +++ b/server/procfs.c
@@ -161,7 +161,7 @@ return 0; } - if ((fd = open_proc_as( process, O_RDONLY )) == -1) return 0; + if ((fd = open_proc_as( process, O_WRONLY )) == -1) return 0; ret = pwrite( fd, src, size, (off_t)ptr ); close( fd );