diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-07-08 22:56:00 -0400 |
---|---|---|
committer | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-07-08 22:56:00 -0400 |
commit | e09ef88d14ed897204212eda795a536c174f46c6 (patch) | |
tree | b66895b6c4f5efd1c5160f136e2aa11f7225bd11 /diskio-unix.cc | |
parent | 1eea9b0b51367472ce12efb59b0018c0ac96a463 (diff) | |
download | sgdisk-e09ef88d14ed897204212eda795a536c174f46c6.tar.gz |
Version 0.8.7 release.
Diffstat (limited to 'diskio-unix.cc')
-rw-r--r-- | diskio-unix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc index fcd10e5..1bdb77b 100644 --- a/diskio-unix.cc +++ b/diskio-unix.cc @@ -73,7 +73,7 @@ int DiskIO::OpenForRead(void) { if (fstat64(fd, &st) == 0) { if (S_ISDIR(st.st_mode)) cerr << "The specified path is a directory!\n"; -#ifndef __FreeBSD__ +#if !defined(__FreeBSD__) && !defined(__APPLE__) else if (S_ISCHR(st.st_mode)) cerr << "The specified path is a character device!\n"; #endif @@ -104,6 +104,7 @@ int DiskIO::OpenForWrite(void) { #ifdef __APPLE__ // MacOS X requires a shared lock under some circumstances.... if (fd < 0) { + cerr << "Warning: Devices opened with shared lock will not have their\npartition table automatically reloaded!\n"; fd = open(realFilename.c_str(), O_WRONLY | O_SHLOCK); } // if #endif |