Skip to content

Commit

Permalink
Add error message to monitor_kqueue.c
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff authored Aug 21, 2021
1 parent 83c1c43 commit 6520e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monitor_kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ dir_vnode_process(struct event *ev, u_int fflags)

// Handle password file changes
if ( strcmp(path + strlen(path) - strlen(PASSWORD_FILE), PASSWORD_FILE) == 0 )
update_password(path);
if (update_password(path) != 0)
DPRINTF(E_ERROR, L_PASSWORD, "Failed to update password.\n");

if (fflags & NOTE_DELETE) {
DPRINTF(E_DEBUG, L_INOTIFY, "Path [%s] deleted.\n", path);
Expand Down

0 comments on commit 6520e43

Please sign in to comment.