On Wed, May 12, 2010 at 01:45:22AM -0400, Hajime Taira wrote: >> I knew, my point is why do you try to open it as a file first, >> then as a directory? If you really have to do so, how about >> using stat() to check if it's a file first then do open()? > >Ok, done. I changed open() to stat(). > Thanks for fixing! It looks good for me. Acked-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html