This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/16366] New: nscd returns success for negative netgroup query results


https://sourceware.org/bugzilla/show_bug.cgi?id=16366

            Bug ID: 16366
           Summary: nscd returns success for negative netgroup query
                    results
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
          Assignee: siddhesh at redhat dot com
          Reporter: siddhesh at redhat dot com
                CC: drepper.fsp at gmail dot com

A negitve result from a netgroup query does not result in a failure return code
when it is serviced through nscd.

Steps to reproduce:

For a netgroup 'foo' that does not exist:

1. service nscd stop
2. getent netgroup foo
3. echo $?
4. service nscd start
5. getent netgroup foo
6. echo $?

Actual results:

With nscd stopped, return code ($?) is 2 while with nscd running, it is 0.

Expected results:

In both cases, return code should be 2.

Patch coming up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]