Checking for return value of shmat() checks the wrong variable in function profile_setup() at line 230 of samba/source/profile/profile.c. profile_h = (struct profile_header *)shmat(shm_id, 0, read_only?SHM_RDONLY:0); - if ((long)profile_p == -1) { + if ((long)profile_h == -1) { DEBUG(0,("Can't attach to IPC area. Error was %s\n", strerror(errno))); return False; } This is likely in multiple versions of Samba. A simple typo that can understandably slip by...
Created attachment 4660 [details] patch for 3.4 Attached find the git-format style patch for 3.4. Pending review, this will be in 3.4.1 (or 3.4.2, depending on the Karolin's release schedule) Thanks, Volker
Created attachment 4661 [details] Patch for 3.3 Patch for 3.3, will be in 3.3.8. Thanks, Volker
Comment on attachment 4660 [details] patch for 3.4 Jeremy, do you have time to ack this for 3.4.2? Thanks, Volker
Comment on attachment 4661 [details] Patch for 3.3 Jeremy, do you have time to ack this for 3.3.8? Thanks, Volker
+1 ack. An obvious fix. Re-assigning to Karolin for inclusion. Jeremy.
Pushed to v3-3-test and v3-4-test. Closing out bug report. Thanks!