Skip to content

Commit

Permalink
Update ShieldMonitor.m
Browse files Browse the repository at this point in the history
  • Loading branch information
theevilbit committed May 19, 2021
1 parent 2265a61 commit a75dc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/ShieldMonitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ - (BOOL) monitor
NSNumber* file_uid = get_file_uid(file.sourcePath);
if (file_uid != nil) {
//file UID and process UID expected to be the same normally
if ([file_uid intValue] != file.process.uid ) {
if (([file_uid intValue] != file.process.uid) && !([file_uid intValue] > 0 && file.process.uid == 0)) {
notification[NOTIFICATION_LINK_TYPE] = @"Hardlink";
notification[NOTIFICATION_LINK_DESTINATION_PATH] = file.destinationPath;
notification[NOTIFICATION_LINK_SOURCE_PATH] = file.sourcePath;
Expand Down

0 comments on commit a75dc5e

Please sign in to comment.