diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-08-15 14:21:39 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-08-15 14:21:39 +0400 |
commit | 2a9366ff49627dc65e265c14485d892c9352e256 (patch) | |
tree | aaf5232358cbafdda7760e9501525f02470e2029 /winsup/cygwin/security.cc | |
parent | 5fd12fb0cc61778a909bdae69d8f61d644e135ba (diff) |
* security.cc (set_nt_attribute): Return always -1 in case of
a failure.
* times.cc (utimes): On NTFS with ntsec ON, change the file's
security descriptor temporarily to acquire write access if
opening the file failed.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 9b5a1e394..4e8e7b933 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1570,7 +1570,7 @@ set_nt_attribute (const char *file, uid_t uid, gid_t gid, if ((ret = read_sd (file, psd, &sd_size)) <= 0) { debug_printf ("read_sd %E"); - return ret; + return -1; } sd_size = 4096; |