[SCM] Samba Shared Repository - branch v3-3-test updated
- release-3-2-0pre2-3240-g5fad9de
Herb Lewis
hlewis at panasas.com
Tue Jul 15 20:31:29 GMT 2008
Günther Deschner wrote:
> The branch, v3-3-test has been updated
> via 5fad9de2507b88820149def31faa28e5e45f7b5f (commit)
> from 1002507b56a13420d8178c5397610edd839a7584 (commit)
>
> http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
>
>
> - Log -----------------------------------------------------------------
> commit 5fad9de2507b88820149def31faa28e5e45f7b5f
> Author: Kai Blin <kai at samba.org>
> Date: Wed Jul 9 10:39:24 2008 +0200
>
> netapi: Correctly increase idx when displaying user information
>
> -----------------------------------------------------------------------
>
> Summary of changes:
> source/lib/netapi/examples/user/user_dispinfo.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
>
> Changeset truncated at 500 lines:
>
> diff --git a/source/lib/netapi/examples/user/user_dispinfo.c b/source/lib/netapi/examples/user/user_dispinfo.c
> index 9f86250..c7d3112 100644
> --- a/source/lib/netapi/examples/user/user_dispinfo.c
> +++ b/source/lib/netapi/examples/user/user_dispinfo.c
> @@ -78,11 +78,13 @@ int main(int argc, const char **argv)
> if (status == 0 || status == ERROR_MORE_DATA) {
> user = (struct NET_DISPLAY_USER *)buffer;
> for (i=0; i<entries_read; i++) {
> - printf("user %d: %s\n", i, user->usri1_name);
> + printf("user %d: %s\n", i + idx,i
> + user->usri1_name);
Aren't you missing a format parameter or you have an extra arg.
> user++;
> }
> NetApiBufferFree(buffer);
> }
> + idx += entries_read;
> } while (status == ERROR_MORE_DATA);
>
> if (status != 0) {
>
>
More information about the samba-technical
mailing list