https://gitlab.com/psmisc/psmisc/-/issues/35 Partially backported from: https://gitlab.com/psmisc/psmisc/-/commit/43df1ce70db019f1e0598d083a9f0a955c93174d --- psmisc-23.4/src/fuser.c +++ psmisc-23.4/src/fuser.c @@ -1606,8 +1606,8 @@ if (thedev != dev_tmp->device) continue; - /* check the paths match if it is not a block device */ - if (! S_ISBLK(dev_tmp->name->st.st_mode)) { + /* check the paths match if it is not a block device or socket */ + if (! S_ISBLK(dev_tmp->name->st.st_mode) && !S_ISSOCK(st.st_mode)) { if (readlink(filepath, real_filepath, PATH_MAX-1) < 0) { if (strncmp(dev_tmp->name->filename, filepath, strlen(dev_tmp->name->filename)) != 0) continue;