Commit 18608ad49cffa430cfd0b4e027dedfe3114f916e

Authored by J. Bruce Fields
1 parent 30c0e1ef0a

nfsd4: typo fix in find_any_file

Signed-off-by: J. Bruce Fields <bfields@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -379,7 +379,7 @@
379 379 {
380 380 if (f->fi_fds[O_RDWR])
381 381 return f->fi_fds[O_RDWR];
382   - else if (f->fi_fds[O_RDWR])
  382 + else if (f->fi_fds[O_WRONLY])
383 383 return f->fi_fds[O_WRONLY];
384 384 else
385 385 return f->fi_fds[O_RDONLY];