summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-11-26 17:21:04 +0000
committerChristopher Faylor <me@cgf.cx>2008-11-26 17:21:04 +0000
commit025c1fac6ee41d7814af7d114791dbf4c22ed617 (patch)
tree40ed7d77fb6578653e57e1f4693dbe594c13218a /winsup/cygwin/fhandler_disk_file.cc
parentf43f75a09db3935effc2f56ecd47b55e3b7c9300 (diff)
downloadcygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.tar.gz
cygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.tar.bz2
cygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.zip
Remove unneeded whitespace.
* fhandler_fifo.cc (fhandler_fifo::open): Rework to cause errno to be set to ENXIO when opening a fifo write/nonblocking. * environ.cc (ucreqenv): Rename to ucenv. Move code from old ucenv here and conditionalize it on create_upcaseenv. (ucenv): Delete. (environ_init): Fix compiler warning by moving create_upcaseenv test to ucenv. Don't bother checking for child_proc_info when calling ucenv since it is assumed to be NULL at the point where the function is called. * path.cc (symlink_worker): Turn off MS-DOS path warnings when dealing with devices since the device handler passes in a translated MS-DOS path. * sec_auth.cc (lsaprivkeyauth): Avoid variable initialization which causes a compiler error. * fhandler_netdrive.cc: Update copyright.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index e0880f050..c388a1362 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -785,7 +785,7 @@ fhandler_disk_file::fchmod (mode_t mode)
if (pc.fs_is_nfs ())
{
/* chmod on NFS shares works by writing an EA of type NfsV3Attributes.
- Only type and mode have to be set. Apparently type isn't checked
+ Only type and mode have to be set. Apparently type isn't checked
for consistency, so it's sufficent to set it to NF3REG all the time. */
struct {
FILE_FULL_EA_INFORMATION ffei;
@@ -806,7 +806,7 @@ fhandler_disk_file::fchmod (mode_t mode)
if (!NT_SUCCESS (status))
__seterrno_from_nt_status (status);
else
- res = 0;
+ res = 0;
goto out;
}
@@ -1571,7 +1571,7 @@ fhandler_disk_file::opendir (int fd)
persistent ACLs, FileDirectoryInformation otherwise.
NFS clients hide dangling symlinks from directory queries,
- unless you use the FileNamesInformation info class.
+ unless you use the FileNamesInformation info class.
On newer NFS clients (>=Vista) FileIdBothDirectoryInformation
works fine, but only if the NFS share is mounted to a drive
letter. TODO: We don't test that here for now, but it might
@@ -1582,7 +1582,7 @@ fhandler_disk_file::opendir (int fd)
{
dir->__flags |= dirent_set_d_ino;
if (pc.fs_is_nfs ())
- dir->__flags |= dirent_nfs_d_ino;
+ dir->__flags |= dirent_nfs_d_ino;
else if (wincap.has_fileid_dirinfo ()
&& !pc.has_buggy_fileid_dirinfo ())
dir->__flags |= dirent_get_d_ino;
@@ -1714,7 +1714,7 @@ fhandler_disk_file::readdir_helper (DIR *dir, dirent *de, DWORD w32_err,
{
tmp_pathbuf tp;
UNICODE_STRING fbuf;
-
+
tp.u_get (&fbuf);
RtlCopyUnicodeString (&fbuf, pc.get_nt_native_path ());
RtlAppendUnicodeToString (&fbuf, L"\\");
@@ -1853,7 +1853,7 @@ go_ahead:
{
FileName = ((PFILE_NAMES_INFORMATION) buf)->FileName;
FileNameLength = ((PFILE_NAMES_INFORMATION) buf)->FileNameLength;
- }
+ }
else
{
FileName = ((PFILE_DIRECTORY_INFORMATION) buf)->FileName;