Ensure that the made-up inode number for a Unix domain socket is persistent.
This commit is contained in:
parent
abe239cfe2
commit
6f782c4636
@ -404,7 +404,7 @@ uipc_sense(struct socket *so, struct stat *sb)
|
||||
}
|
||||
sb->st_dev = NOUDEV;
|
||||
if (unp->unp_ino == 0)
|
||||
unp->unp_ino = unp_ino++;
|
||||
unp->unp_ino = (++unp_ino == 0) ? ++unp_ino : unp_ino;
|
||||
sb->st_ino = unp->unp_ino;
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user