millert
c67af3de41
Add OPENDEV_BLCK flag for opening the block devices (the character
device is opened by default). Don't open the file w/o adding a /dev/ prefix unless the file has a '/' in it. This prevents problems where someone says "disklabel sd0" with a file called "sd0" in the cwd. The OPENDEV_DRCT flag has been deprecated as it is the the default behavior and always has been. Add checks for >= MAXPATHLEN and return ENAMETOOLONG in that case. |
24 years ago | |
---|---|---|
src | Add OPENDEV_BLCK flag for opening the block devices (the character | 24 years ago |