Re: [PATCH regression] dup3: Return an error when oldfd == newfd.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 09, 2012 at 03:27:43PM +0100, Richard W.M. Jones wrote:
> I have tested the attached patch to fix the dup3 regression.
> 
> Rich.
> 
> From 0944e30e12dec6544b3602626b60ff412375c78f Mon Sep 17 00:00:00 2001
> From: "Richard W.M. Jones" <rjones@xxxxxxxxxx>
> Date: Tue, 9 Oct 2012 14:42:45 +0100
> Subject: [PATCH] dup3: Return an error when oldfd == newfd.
> 
> The following commit:
> 
>   commit fe17f22d7fd0e344ef6447238f799bb49f670c6f
>   Author: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>   Date:   Tue Aug 21 11:48:11 2012 -0400
> 
>     take purely descriptor-related stuff from fcntl.c to file.c
> 
> was supposed to be just code motion, but it dropped the following two
> lines:
> 
>   if (unlikely(oldfd == newfd))
>           return -EINVAL;

*grumble*
So it has; applied, will push to Linus.  But now I really want to check
if I'd lost anything else in those code moves (and you are right, it
was supposed to be just that).
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux