Commit 837ed355 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] fcntl returns wrong error code (Updated)

Christopher Yeoh <cyeoh@samba.org>: Re: fcntl returns wrong error code (Updated):
  At 2002/3/22 00:58+1100  Christopher Yeoh writes:
  > btw Stephen Rothwell pointed out that there is a much neater way to
  > achieve the same change. I'll post a new patch in the morning.

  This is the updated patch.


(Included in 2.4)
parent e73512e4
......@@ -88,6 +88,10 @@ static int locate_fd(struct files_struct *files,
write_lock(&files->file_lock);
error = -EINVAL;
if (orig_start >= current->rlim[RLIMIT_NOFILE].rlim_cur)
goto out;
repeat:
/*
* Someone might have closed fd's in the range
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment