Jeff Mahoney
2b79bc4f7e
dup2: Fix return value with oldfd == newfd and invalid fd
...
The return value of dup2 when oldfd == newfd and the fd isn't valid is
not getting properly sign extended. We end up with 4294967287 instead
of -EBADF.
I've reproduced this on SLE11 (2.6.27.21), openSUSE Factory
(2.6.29-rc5), and Ubuntu 9.04 (2.6.28).
This patch uses a signed int for the error value so it is properly
extended.
Commit 6c5d0512a091480c9f981162227fdb1c9d70e555 introduced this
regression.
Reported-by: Jiri Dluhos <jdluhos@novell.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-05-11 12:18:06 -07:00
..
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:08 -07:00
2009-05-09 10:51:34 -04:00
2009-05-09 10:51:34 -04:00
2009-04-20 23:01:15 -04:00
2009-05-02 15:36:09 -07:00
2009-04-08 10:21:43 -07:00
2009-05-09 10:49:40 -04:00
2009-04-03 16:42:41 +01:00
2009-05-09 10:49:40 -04:00
2009-03-27 14:44:00 -04:00
2009-04-21 12:59:21 -07:00
2009-04-02 19:05:08 -07:00
2009-03-23 16:25:46 +01:00
2009-05-09 10:49:40 -04:00
2009-03-11 12:23:59 -05:00
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:09 -07:00
2009-03-31 19:44:38 +03:00
2009-04-27 16:49:52 +02:00
2009-04-08 13:15:10 -04:00
2009-04-24 18:45:35 -04:00
2009-04-17 09:32:11 -07:00
2009-01-22 13:15:58 +03:00
2009-04-03 16:42:39 +01:00
2009-05-09 10:49:38 -04:00
2009-05-10 10:49:08 -07:00
2009-04-13 15:04:29 -07:00
2009-04-02 21:09:10 -07:00
2009-03-27 14:44:00 -04:00
2009-05-09 10:51:34 -04:00
2009-04-02 19:04:53 -07:00
2009-04-21 13:41:48 -07:00
2009-04-02 19:05:09 -07:00
2009-04-24 08:37:40 -07:00
2009-04-14 07:50:56 -04:00
2009-04-06 14:56:26 -07:00
2009-03-31 23:00:26 -04:00
2009-04-06 13:25:56 -07:00
2009-04-02 19:05:09 -07:00
2009-04-20 23:02:51 -04:00
2009-05-09 10:49:40 -04:00
2009-04-20 23:01:16 -04:00
2009-04-13 09:53:52 +09:00
2009-05-06 16:36:09 -07:00
2009-04-01 08:59:18 -07:00
2009-05-09 10:49:40 -04:00
2009-04-02 21:09:10 -07:00
2009-04-02 00:49:02 +02:00
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:10 -07:00
2009-04-27 16:49:52 +02:00
2009-04-07 07:39:59 -07:00
2009-05-09 10:51:34 -04:00
2009-05-09 10:49:41 -04:00
2009-03-27 14:44:00 -04:00
2009-04-06 13:30:00 -07:00
2009-04-20 23:02:50 -04:00
2009-04-02 19:05:10 -07:00
2009-05-09 10:49:40 -04:00
2009-04-02 13:36:28 +02:00
2009-05-09 10:49:42 -04:00
2009-05-02 16:52:50 -07:00
2009-03-19 15:57:18 -07:00
2009-03-27 14:44:03 -04:00
2009-03-26 02:18:35 +01:00
2009-05-02 15:36:10 -07:00
2009-03-31 23:00:27 -04:00
2009-03-31 23:00:28 -04:00
2009-03-24 12:35:17 +01:00
2009-04-28 20:24:29 +02:00
2009-04-01 07:07:16 -04:00
2009-05-02 15:36:09 -07:00
2009-04-20 23:01:16 -04:00
2009-04-24 07:39:45 -07:00
2009-05-09 10:49:40 -04:00
2009-04-15 12:10:13 +02:00
2009-04-02 19:04:48 -07:00
2009-04-01 08:59:20 -07:00
2009-04-01 08:59:20 -07:00
2009-05-09 10:49:42 -04:00
2009-05-11 12:18:06 -07:00
2009-03-30 15:22:03 +02:00
2009-04-20 23:02:52 -04:00
2009-03-31 23:00:27 -04:00
2009-04-03 15:24:35 -07:00
2009-03-31 23:00:26 -04:00
2009-05-09 10:49:41 -04:00
2009-03-31 23:00:26 -04:00
2009-05-06 16:36:09 -07:00
2009-04-07 08:31:16 -07:00
2009-05-09 10:49:40 -04:00
2009-04-07 08:31:16 -07:00
2009-04-01 07:38:54 -04:00
2009-05-09 10:49:42 -04:00
2009-05-09 10:51:34 -04:00
2009-05-09 10:49:42 -04:00
2009-04-15 12:10:12 +02:00
2009-04-04 14:20:34 -07:00
2009-03-30 22:05:11 +10:30
2009-04-17 07:38:07 -07:00
2009-04-20 23:02:52 -04:00
2009-05-09 10:49:41 -04:00
2009-03-27 14:48:34 -07:00
2009-02-18 15:37:53 -08:00
2009-04-20 23:02:50 -04:00