From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 18 Oct 2004 19:42:55 +0000 Subject: volume_id fix Message-Id: <20041018194255.GA7819@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" List-Id: To: linux-hotplug@vger.kernel.org --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've been told that open() should not pass O_NONBLOCK. Kay --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="udev-volume_id-01.patch" ===== extras/volume_id/volume_id.c 1.7 vs edited ===== --- 1.7/extras/volume_id/volume_id.c 2004-10-06 00:36:16 +02:00 +++ edited/extras/volume_id/volume_id.c 2004-10-18 21:16:20 +02:00 @@ -2128,7 +2128,7 @@ struct volume_id *id; int fd; - fd = open(path, O_RDONLY | O_NONBLOCK); + fd = open(path, O_RDONLY); if (fd < 0) { dbg("unable to open '%s'", path); return NULL; --zYM0uCDKw75PZbzx-- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel