From decbb5d3873df73f9a7e93f2be1edd248d329d3f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 19 Aug 2007 15:55:06 +0000 Subject: * path.cc (fillout_mntent): Append backslash to drive-only paths before calling fs_info::update. * path.h (fs_info::clear): Simplify. (fs_info::fs_info): Add constructor. --- winsup/cygwin/path.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'winsup/cygwin/path.h') diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index eb3fb5d74..fb654d0f9 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -110,20 +110,9 @@ struct fs_info unsigned is_cdrom : 1; } status; public: - void clear () - { - flags () = 0; - is_remote_drive (false); - has_buggy_open (false); - has_acls (false); - hasgood_inode (false); - is_fat (false); - is_ntfs (false); - is_samba (false); - is_nfs (false); - is_netapp (false); - is_cdrom (false); - } + void clear () { memset (this, 0 , sizeof *this); } + fs_info () { clear (); } + inline DWORD& flags () {return status.flags;}; IMPLEMENT_STATUS_FLAG (bool, is_remote_drive) -- cgit v1.2.3