* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user