FindClose(hFind);
return ret;
}
+
#endif
/*
}
out_close_handle:
CloseHandle(hFile);
+out_free_path_utf16:
+ FREE(path_utf16);
out_destroy_sd_set:
if (extra_arg == NULL)
destroy_sd_set(sd_set);
-out_free_path_utf16:
- FREE(path_utf16);
#endif
/* The below lines of code are common to both UNIX and Win32 builds. It
* simply returns the captured directory tree if the capture was
} else {
size_t i;
+#if defined(__CYGWIN__) || defined(__WIN32__)
+ win32_acquire_privilege(SE_BACKUP_NAME);
+ win32_acquire_privilege(SE_SECURITY_NAME);
+ win32_acquire_privilege(SE_TAKE_OWNERSHIP_NAME);
+#endif
root_dentry = NULL;
i = 0;
do {
out_destroy_capture_config:
destroy_capture_config(&config);
out:
+#if defined(__CYGWIN__) || defined(__WIN32__)
+ win32_release_privilege(SE_BACKUP_NAME);
+ win32_release_privilege(SE_SECURITY_NAME);
+ win32_release_privilege(SE_TAKE_OWNERSHIP_NAME);
+#endif
return ret;
}