Bug 465911 - ipcs returns 0 when some errors occured.
Summary: ipcs returns 0 when some errors occured.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: util-linux
Version: 5.2.z
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 5.6
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-07 04:17 UTC by Jinbing Guo
Modified: 2011-01-13 23:44 UTC (History)
4 users (show)

Fixed In Version: RHEL 5.6
Doc Type: Bug Fix
Doc Text:
ipcalc ipcrm ipcs [root@fair ~]# ipcs -s -i 213 ipcs: semctl failed: Invalid argument [root@fair ~]# echo $? 1
Clone Of:
Environment:
Last Closed: 2011-01-13 23:44:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch for this bug (896 bytes, patch)
2008-10-07 04:36 UTC, Jin Bing Guo
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0085 0 normal SHIPPED_LIVE util-linux bug fix update 2011-01-12 17:29:18 UTC

Description Jinbing Guo 2008-10-07 04:17:37 UTC
Description of problem:

# ipcs -s -i 213
semctl : Invalid argument
# echo $?
0

Version-Release number of selected component (if applicable):
Linux gjb 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
util-linux-2.13-0.47.el5
Linux ovislp1 2.6.18-92.el5 #1 SMP Tue Apr 29 13:21:29 EDT 2008 ppc64 ppc64 ppc64 GNU/Linux
util-linux-2.13-0.47.el5

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
return 0

Expected results:
return 1

Additional info:

Comment 1 Jin Bing Guo 2008-10-07 04:36:46 UTC
Created attachment 319613 [details]
patch for this bug

Comment 2 Jin Bing Guo 2008-10-07 04:38:27 UTC
I downloaded the util-linux-2.13-0.47.el5.src.rpm and patched it.
==============
After patching
==============
# ipcs -s -i 213
semctl : Invalid argument
# echo $?
1

Comment 4 RHEL Program Management 2009-03-26 16:56:08 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 8 Chris Ward 2010-11-18 12:22:33 UTC
~~ ATTN Customers & Partners - RHEL 5.6 Public Beta available on RHN ~~

A fix for this BZ should be present and testable in the release. 

If this Bugzilla is verified as resolved, please update the Verified field
above with an appropriate value and include a summary of the testing executed
and the results obtained.

If you encounter any issues or have questions while testing, please describe
them and set this bug into NEED_INFO. 

If you encounter new defects or have additional patches to request for
inclusion, promptly escalate the new issues through your support
representative.

Finally, FYI: future Beta kernels can be found here:
 http://people.redhat.com/jwilson/el5/

Note: Bugs with the 'OtherQA' keyword require Third-Party testing to confirm
the request has been properly addressed. 
See:
 https://bugzilla.redhat.com/describekeywords.cgi#OtherQA

Comment 9 Jinbing Guo 2010-11-19 06:24:20 UTC
This bug was fixed in RHEL5.6 

ipcalc  ipcrm   ipcs    
[root@fair ~]# ipcs -s -i 213
ipcs: semctl failed: Invalid argument
[root@fair ~]# echo $?
1

Comment 10 Jinbing Guo 2010-11-19 06:24:20 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
ipcalc  ipcrm   ipcs    
[root@fair ~]# ipcs -s -i 213
ipcs: semctl failed: Invalid argument
[root@fair ~]# echo $?
1

Comment 13 errata-xmlrpc 2011-01-13 23:44:06 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0085.html


Note You need to log in before you can comment on or make changes to this bug.