Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-03-08 19:10:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-03-08 19:10:55 +0300
commit6ca53189400aa2d4b12ccea4378f5b2ff759cf50 (patch)
tree15cd79f28dde6ecc25fe737d4cb5775a16340764
parent6022cd2ef97c4898540ec00260ce71de5aa03c6d (diff)
* syscalls.cc (statvfs): Simplify path name expression.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/syscalls.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a817b2da9..93fd8393c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2006-03-08 Corinna Vinschen <corinna@vinschen.de>
+ * syscalls.cc (statvfs): Simplify path name expression.
+
+2006-03-08 Corinna Vinschen <corinna@vinschen.de>
+
* syscalls.cc: Include winioctl.h.
(statvfs): Request correct volume size using DeviceIoControl if
quotas are enforced on the file system.
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 0538ffa8a..ef3f90f4a 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1845,19 +1845,19 @@ statvfs (const char *fname, struct statvfs *sfs)
if (freec > availc)
{
/* Quotas active. We can't trust totalc. */
- HANDLE hdl = CreateFile (full_path.get_win32 (), READ_CONTROL,
+ HANDLE hdl = CreateFile (full_path, READ_CONTROL,
wincap.shared (), &sec_none_nih,
OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (hdl == INVALID_HANDLE_VALUE)
- debug_printf ("CreateFile (%s) failed, %E", full_path.get_win32 ());
+ debug_printf ("CreateFile (%s) failed, %E", full_path);
else
{
NTFS_VOLUME_DATA_BUFFER nvdb;
DWORD bytes;
if (!DeviceIoControl (hdl, FSCTL_GET_NTFS_VOLUME_DATA, NULL,
0, &nvdb, sizeof nvdb, &bytes, NULL))
- debug_printf ("DeviceIoControl (%s) failed, %E", full_path.get_win32 ());
+ debug_printf ("DeviceIoControl (%s) failed, %E", full_path);
else
totalc = nvdb.TotalClusters.QuadPart;
CloseHandle (hdl);