]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux: make reading unixusers from proc actually work
authorD Brashear <shadow@your-file-system.com>
Tue, 22 Apr 2014 15:38:44 +0000 (11:38 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 4 Jun 2014 12:49:43 +0000 (08:49 -0400)
our indentation did not match our braces so we would never read all the
objects in each unixuser hash chain. add the missing braces

Reviewed-on: http://gerrit.openafs.org/11094
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: D Brashear <shadow@your-file-system.com>
(cherry picked from commit 279e01051600f0884ed3669786543578e53cf518)

Change-Id: If8d4faf8a9cc301d231c1f7b11ab5bb9ca721451
Reviewed-on: http://gerrit.openafs.org/11093
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>
Reviewed-by: Nathaniel Filardo <nwfilardo@gmail.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_proc.c

index 5e3ac5301dc5b1dadce9a908ab6d33db0da95984..0de19a3e89396de8c657509cf86cf67b52cd1f5e 100644 (file)
@@ -151,9 +151,10 @@ uu_start(struct seq_file *m, loff_t *pos)
 
     for (i = 0; i < NUSERS; i++) {
        for (tu = afs_users[i]; tu; tu = tu->next) {
-           if (++n == *pos)
+           if (++n == *pos) {
                ret = tu;
                goto done;
+           }
        }
     }