mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 16:49:45 +08:00
* path.cc (path_conv::check): Convert device type to FH_FS for
non-existant files on /dev, unless /dev itself doesn't exist on disk. Add comment to explain why.
This commit is contained in:
parent
9e1fe26d12
commit
ce508e512a
@ -1,3 +1,9 @@
|
|||||||
|
2012-04-04 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* path.cc (path_conv::check): Convert device type to FH_FS for
|
||||||
|
non-existant files on /dev, unless /dev itself doesn't exist on disk.
|
||||||
|
Add comment to explain why.
|
||||||
|
|
||||||
2012-04-04 Corinna Vinschen <corinna@vinschen.de>
|
2012-04-04 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* hookapi.cc (rvadelta): Compute max_size using SizeOfRawData rather
|
* hookapi.cc (rvadelta): Compute max_size using SizeOfRawData rather
|
||||||
|
@ -882,6 +882,19 @@ is_virtual_symlink:
|
|||||||
: sym.fileattr;
|
: sym.fileattr;
|
||||||
path_flags = sym.pflags;
|
path_flags = sym.pflags;
|
||||||
}
|
}
|
||||||
|
else if (isdev_dev (dev))
|
||||||
|
{
|
||||||
|
/* If we're looking for a file below /dev, which doesn't exist,
|
||||||
|
make sure that the device type is converted to FH_FS, so that
|
||||||
|
subsequent code handles the file correctly.
|
||||||
|
Unless /dev itself doesn't exist on disk. In that case /dev
|
||||||
|
is handled as virtual filesystem, and virtual filesystems are
|
||||||
|
read-only. */
|
||||||
|
if (sym.error == ENOENT)
|
||||||
|
sym.error = EROFS;
|
||||||
|
else
|
||||||
|
dev.d.devn = FH_FS;
|
||||||
|
}
|
||||||
|
|
||||||
/* If symlink.check found an existing non-symlink file, then
|
/* If symlink.check found an existing non-symlink file, then
|
||||||
it sets the appropriate flag. It also sets any suffix found
|
it sets the appropriate flag. It also sets any suffix found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user