Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SYSV MSG IPC SEM bug fixed



>I finally tracked down the bug causing ipc_perm, messages and semaphores 
>not to work properly.  
>
>In /usr/include/sys/ipc.h 
>After 
>#define	IPC_R	0400
>
>#define IPC_M	10000	(decimal) should be 
>               ^^ 
>#define IPC_M	010000   (octal) 
>                ^^
>This caused (mode & IPC_M) to always return true and 
>msg_perm.mode was never evaluated.
>
>As changed, it works fine.

   Thanks, I just committed the change to CVS.

-DG