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:
authorChristopher Faylor <me@cgf.cx>2005-02-01 20:16:14 +0300
committerChristopher Faylor <me@cgf.cx>2005-02-01 20:16:14 +0300
commit8c96f3fac27c13fa178f927753aaba3beed62209 (patch)
treefcd6c585a8a34f245e1b7724b5d57df18b475ff7 /winsup/cygwin/fhandler_proc.cc
parent74d8e12e16d5d5416ce37100f8767ff0affa90ec (diff)
* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check since
it could skip over partitions that are actually interesting.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index bd6ff03bb..e4fc918e9 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1,6 +1,6 @@
/* fhandler_proc.cc: fhandler for /proc virtual filesystem
- Copyright 2002, 2003, 2004 Red Hat, Inc.
+ Copyright 2002, 2003, 2004, 2005 Red Hat, Inc.
This file is part of Cygwin.
@@ -1012,8 +1012,7 @@ format_proc_partitions (char *destbuf, size_t maxsize)
DRIVE_LAYOUT_INFORMATION *dli = (DRIVE_LAYOUT_INFORMATION *) buf;
for (unsigned partition = 0; partition < dli->PartitionCount; partition++)
{
- if (!dli->PartitionEntry[partition].PartitionLength.QuadPart
- || !dli->PartitionEntry[partition].PartitionType)
+ if (!dli->PartitionEntry[partition].PartitionLength.QuadPart)
continue;
device dev;
dev.parsedisk (drive_number, partition + 1);