From: Christopher Yeoh <cyeoh@samba.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>,
torvalds@transmeta.com (Linus Torvalds),
marcelo@conectiva.com.br (Marcelo Tosatti)
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: Re: [PATCH] fcntl returns wrong error code (Updated)
Date: Fri, 22 Mar 2002 13:56:33 +1100 [thread overview]
Message-ID: <15514.40289.569648.109200@gargle.gargle.HOWL> (raw)
In-Reply-To: <15513.59145.678790.431319@gargle.gargle.HOWL>
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.
--- linux-2.4.18/fs/fcntl.c~ Fri Mar 22 11:54:35 2002
+++ linux-2.4.18/fs/fcntl.c Fri Mar 22 12:31:18 2002
@@ -66,6 +66,10 @@
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
prev parent reply other threads:[~2002-03-22 3:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-21 6:09 [PATCH] fcntl returns wrong error code Christopher Yeoh
2002-03-21 13:28 ` Alan Cox
2002-03-21 13:58 ` Christopher Yeoh
2002-03-22 2:56 ` Christopher Yeoh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15514.40289.569648.109200@gargle.gargle.HOWL \
--to=cyeoh@samba.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=torvalds@transmeta.com \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®