mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
* path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok was
actually valid. Fix it.
This commit is contained in:
parent
102861c9a6
commit
e59c6ff448
@ -1,3 +1,8 @@
|
||||
2003-05-30 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok
|
||||
was actually valid. Fix it.
|
||||
|
||||
2003-05-30 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's
|
||||
|
@ -796,7 +796,9 @@ out:
|
||||
{
|
||||
set_has_acls (true);
|
||||
if (allow_ntsec && wincap.has_security ())
|
||||
set_exec (0);
|
||||
set_exec (0); /* We really don't know if this is executable or not here
|
||||
but set it to not executable since it will be figured out
|
||||
later by anything which cares about this. */
|
||||
}
|
||||
/* Known file systems with buggy open calls. Further explanation
|
||||
in fhandler.cc (fhandler_disk_file::open). */
|
||||
@ -1442,6 +1444,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
|
||||
DWORD &devn, int &unit, unsigned *flags,
|
||||
bool no_normalize)
|
||||
{
|
||||
bool chroot_ok = !cygheap->root.exists ();
|
||||
while (sys_mount_table_counter < cygwin_shared->sys_mount_table_counter)
|
||||
{
|
||||
init ();
|
||||
@ -1585,8 +1588,6 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
|
||||
break;
|
||||
}
|
||||
|
||||
bool chroot_ok;
|
||||
chroot_ok = false; // sigh. stop gcc warning
|
||||
if (i >= nmounts)
|
||||
{
|
||||
backslashify (pathbuf, dst, 0); /* just convert */
|
||||
|
Loading…
x
Reference in New Issue
Block a user