Changeset 43

Show
Ignore:
Timestamp:
06/24/08 14:25:06 (4 months ago)
Author:
jtang
Message:

Fixed a problem in shared memory where a function could return an uninitialized value.
Fixed RPM spec file for library installation on 64-bit systems.
Added a README that documents the build system.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libsipc.spec

    r42 r43  
    33License: GPLv2 
    44BuildRoot: %{_tmppath}/libsipc-%{version} 
    5 Release: 0 
     5Release: 1 
    66Source: libsipc.tar.gz 
    77Summary: Secure Inter-Process Library 
     
    5858%install 
    5959rm -rf ${RPM_BUILD_ROOT} 
    60 make DESTDIR=${RPM_BUILD_ROOT} PREFIX='/usr' ENABLE_JAVA=1 install 
     60make DESTDIR=${RPM_BUILD_ROOT} PREFIX='/usr' LIBDIR=%{_libdir} ENABLE_JAVA=1 install 
    6161# on RedHat systems, shared libraries are installed as executable 
    62 chmod 755 ${RPM_BUILD_ROOT}/usr/lib/* 
     62chmod 755 ${RPM_BUILD_ROOT}/%{_libdir}/* 
    6363 
    6464%clean 
     
    9696 
    9797%changelog 
     98* Tue Jun 24 2008 Jason Tang <selinux@tresys.com> 1.1-1 
     99- Set install library install location to %{_libdir}, for 64-bit systems. 
     100 
    98101* Wed Jun 04 2008 Jason Tang <selinux@tresys.com> 1.1-0 
    99102- Fixed buffer size calculations. 
  • trunk/libsipc/src/sipc_shm.c

    r41 r43  
    207207                *len = sipc->len; 
    208208                return 0; 
    209         } else if (mtype < 0)
     209        } else
    210210                sipc_error(sipc, "Received a message of unknown type\n"); 
    211211                return -1;