Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/lib/libutil/gr_util.c 243334 2012-11-20 14:03:09Z bapt $");
---
> __FBSDID("$FreeBSD: head/lib/libutil/gr_util.c 244735 2012-12-27 14:09:50Z bapt $");
109,112c109,110
< lockfd = open(group_file, O_RDONLY, 0);
< if (lockfd < 0 || fcntl(lockfd, F_SETFD, 1) == -1)
< err(1, "%s", group_file);
< if (flock(lockfd, LOCK_EX|LOCK_NB) == -1) {
---
> lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK, 0);
> if (lockfd == -1) {