Skip to content

Commit a75dc5e

Browse files
committed
Update ShieldMonitor.m
1 parent 2265a61 commit a75dc5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Extension/ShieldMonitor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ - (BOOL) monitor
393393
NSNumber* file_uid = get_file_uid(file.sourcePath);
394394
if (file_uid != nil) {
395395
//file UID and process UID expected to be the same normally
396-
if ([file_uid intValue] != file.process.uid ) {
396+
if (([file_uid intValue] != file.process.uid) && !([file_uid intValue] > 0 && file.process.uid == 0)) {
397397
notification[NOTIFICATION_LINK_TYPE] = @"Hardlink";
398398
notification[NOTIFICATION_LINK_DESTINATION_PATH] = file.destinationPath;
399399
notification[NOTIFICATION_LINK_SOURCE_PATH] = file.sourcePath;

0 commit comments

Comments
 (0)