On Wed, May 12, 2010 at 01:50:35PM +0900, Hajime Taira wrote: >Hi, > >I fixed that. And reattach a patch. > >> Do we have to do open() twice here? I doubt. > >First open(), path is filename. >Second open(), path is directory name. 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()? Thanks. -- 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