]> git.tuebingen.mpg.de Git - paraslash.git/commit
lsatt: Do not print "no matches" message unconditionally.
authorAndre Noll <maan@systemlinux.org>
Fri, 20 Jan 2012 21:42:39 +0000 (22:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 20 Jan 2012 21:42:39 +0000 (22:42 +0100)
commit79e45e1d7eb7f6387a39b41449da9f789a7fce9d
treeedcc194063d9ce195abf97eafece6efd7baab1ad
parentbbeafca82b73402b6984177d22628dda6325774d
lsatt: Do not print "no matches" message unconditionally.

com_lsatt() needs to know if output has been sent to the client in
order to decide whether it should print the "no matches" error message.
Currently this message is printed if at least one argument was given
and send_callback_request() returned zero.

However, send_callback_request() returns zero on success and negative
on errors. Hence, if at least one argument was given, the error
message is printed regardless of whether there was a match.

Fix this bug by changing send_callback_request() to return the number
of received shared memory areas on success.
afs.c