We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2265a61 commit a75dc5eCopy full SHA for a75dc5e
1 file changed
Extension/ShieldMonitor.m
@@ -393,7 +393,7 @@ - (BOOL) monitor
393
NSNumber* file_uid = get_file_uid(file.sourcePath);
394
if (file_uid != nil) {
395
//file UID and process UID expected to be the same normally
396
- if ([file_uid intValue] != file.process.uid ) {
+ if (([file_uid intValue] != file.process.uid) && !([file_uid intValue] > 0 && file.process.uid == 0)) {
397
notification[NOTIFICATION_LINK_TYPE] = @"Hardlink";
398
notification[NOTIFICATION_LINK_DESTINATION_PATH] = file.destinationPath;
399
notification[NOTIFICATION_LINK_SOURCE_PATH] = file.sourcePath;
0 commit comments