Newly introduced bug in posix.c:same_file_type() in 2.0.0pre18

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

 



Hi,

someone broke posix.c:same_file_type() 2.0.0pre18: The logic was exactly reversed and the routine gave 0 for same file types, instead if TRUE. The version from 2.0.0rc1 worked...

Here is the patch

*** posix.c.ori	2009-02-14 17:56:28.000000000 +0100
--- posix.c	2009-02-17 14:43:10.241854464 +0100
***************
*** 2719,2725 ****
  static int
  same_file_type (mode_t m1, mode_t m2)
  {
! 	return (S_IFMT & (m1 ^ m2));
  }


--- 2719,2725 ----
  static int
  same_file_type (mode_t m1, mode_t m2)
  {
! 	return (S_IFMT & (m1 ^ m2)) == 0;
  }

Gowda, could you please re-check it and apply the patch?

Have fun,

     Fred

Dr. Fred Hucht <fred@xxxxxxxxxxxxxx>
Institute for Theoretical Physics
University of Duisburg-Essen, 47048 Duisburg, Germany





[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux