Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Nov 2014 18:02:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194764] New: ctladm always return 1
Message-ID:  <bug-194764-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194764

            Bug ID: 194764
           Summary: ctladm always return 1
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: mir@miras.org

When invoking ctladm devlist the command will always have a return value of 1
whether the commands succeed or not.

The part responsible for this:
    retval = XML_Parse(parser, lun_str, strlen(lun_str), 1);
    XML_ParserFree(parser);
    if (retval != 1) {
        retval = 1;
        goto bailout;
    }

Should ctladm not return 0 (zero) in case of success?

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194764-8>