summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-08-30 16:45:32 +0000
committercsjp <csjp@FreeBSD.org>2005-08-30 16:45:32 +0000
commit42baca97e54dc0985cc6f2e8c148438572be0394 (patch)
treeb251e55ac474f77eefb48fcdf41ef195b4edd9dd /sbin/dhclient
parent02715a1de8ff9b7eb30ac50221e7a9c2a8e4edd4 (diff)
downloadFreeBSD-src-42baca97e54dc0985cc6f2e8c148438572be0394.zip
FreeBSD-src-42baca97e54dc0985cc6f2e8c148438572be0394.tar.gz
When using files as backing stores for devices, and the user has requested the
device be created read+write, check to see if the backing store is read only through the use of the access(2) system call. If this check fails returning EACCES, EPERM or EROFS then gracefully downgrade the access to read only. Also print a warning message to stderr, informing the user that the access mode they requested is not available. This behavior used to be handled by md(4) but was changed in revision 1.154 Discussed with: pjd, phk, Dario Freni <saturnero at freesbie dot org> Reviewed by: phk
Diffstat (limited to 'sbin/dhclient')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud