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:
authorEgor Duda <deo@logos-m.ru>2001-06-05 14:45:52 +0400
committerEgor Duda <deo@logos-m.ru>2001-06-05 14:45:52 +0400
commit149da470f31c237d82903e106f029d1e0b392542 (patch)
tree5b29b77e89f4fd3473ceecb7cd972e7fb0ede7c2 /winsup/cygwin/ntea.cc
parentfa821be37b56798f70b488530a07adeb2092b69b (diff)
* security.h (NTWriteEA): Change prototype.
* ntea.cc (NTReadEA): Don't check for global ntea setting, now it's caller responsibility. (NTWriteEA): Ditto. * security.cc (get_file_attribute): Read attribute from EA only if 'ntea' is enabled. (set_file_attribute): Ditto. * path.h: (class path_conv): Add members to store file system information. (path_conv::get_drive_type): New function. * syscalls.cc (stat_worker): Use it. * path.cc (path_conv::update_fs_info): New functions. (path_conv::check): Get file system information from device where file resides. On NTFS, try to read symlink contents from EA. (get_symlink_ea): New function. (set_symlink_ea): Ditto. (symlink): Store symlink in extended attribute, if possible.
Diffstat (limited to 'winsup/cygwin/ntea.cc')
-rw-r--r--winsup/cygwin/ntea.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/winsup/cygwin/ntea.cc b/winsup/cygwin/ntea.cc
index 85cc4187f..1d5c77cd4 100644
--- a/winsup/cygwin/ntea.cc
+++ b/winsup/cygwin/ntea.cc
@@ -85,10 +85,6 @@ BOOL NTWriteEA(const char *file, const char *attrname, char *buf, int len);
int __stdcall
NTReadEA (const char *file, const char *attrname, char *attrbuf, int len)
{
- /* return immediately if NTEA usage is turned off */
- if (!allow_ntea)
- return FALSE;
-
HANDLE hFileSource;
int eafound = 0;
PFILE_FULL_EA_INFORMATION ea, sea;
@@ -254,12 +250,8 @@ NTReadEARaw (HANDLE hFileSource, int *len)
*/
BOOL __stdcall
-NTWriteEA (const char *file, const char *attrname, char *buf, int len)
+NTWriteEA (const char *file, const char *attrname, const char *buf, int len)
{
- /* return immediately if NTEA usage is turned off */
- if (!allow_ntea)
- return TRUE;
-
HANDLE hFileSource;
WIN32_STREAM_ID StreamId;
DWORD dwBytesWritten;