]> Zhao Yanbai Git Server - minix.git/commit
libutil: let opendisk(3) try /dev
authorDavid van Moolenbroek <david@minix3.org>
Tue, 17 Apr 2012 22:04:28 +0000 (00:04 +0200)
committerLionel Sambuc <lionel@minix3.org>
Wed, 19 Feb 2014 10:22:19 +0000 (11:22 +0100)
commitde27460e2ee5a892dac4f740fba98136878f3db3
tree183c01975aa0f0ddfb87cf82540b9731781dfd0d
parent6700874debbd1371bc9121f52f79be8ce762c25d
libutil: let opendisk(3) try /dev

If a device node is given without path, and opening the node fails
initially, prepend "/dev/" to the node name and try opening again.
This is more in line with NetBSD behavior.

Change-Id: Ib544aec52abe43132510f0e4b173b00fb3dbaab8
lib/libutil/opendisk.c