|
From: | Richard Henderson |
Subject: | Re: [PATCH 18/22] Implement shm_open(2) |
Date: | Sun, 20 Aug 2023 08:10:35 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 8/20/23 08:04, Richard Henderson wrote:
On 8/19/23 02:48, Karim Taha wrote:+#define SHM_PATH(p) ((p) == SHM_ANON ? (p) : path(p)) + if (arg1 == (uintptr_t)SHM_ANON) { + p = SHM_ANON; + } else { + p = lock_user_string(arg1); + if (p == NULL) { + return -TARGET_EFAULT; + } + } + ret = get_errno(shm_open(SHM_PATH(p),Again, SHM_PATH is not needed, because the condition is handled by this IF.
Oh, no, that's something different. But path() is wrong for shm_open, because it's not a path in the regular file system. r~
[Prev in Thread] | Current Thread | [Next in Thread] |