* 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.
This commit is contained in:
Corinna Vinschen
2001-08-15 10:21:39 +00:00
parent 5fd12fb0cc
commit 2a9366ff49
3 changed files with 40 additions and 2 deletions

View File

@@ -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;