Dont make temp dir world writeable

This commit is contained in:
Kovid Goyal 2026-05-16 13:24:45 +05:30
parent c278e82ab5
commit 12e2f80df3
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1720,7 +1720,6 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
NSLog(@"Failed to create temp dir for file promises: %@", mkdirError);
return NO;
}
[[NSFileManager defaultManager] setAttributes:@{NSFilePosixPermissions: @(0777)} ofItemAtPath:[tempDirURL path] error:&mkdirError];
d->in_progress_drop.data_map = [[NSMutableDictionary alloc] init];
NSPasteboard *pasteboard = [sender draggingPasteboard];
NSMutableArray<NSURL *> *urls = [NSMutableArray array];