diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 13:26:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 13:26:46 +0000 |
commit | 296d0fe8f85ef1b2703c189681dbb22d66f72852 (patch) | |
tree | e5015624d16550fbbfbb660f4167bd6e1d6c52e4 | |
parent | 167dbe7c9239d1d64cd5470ed99c639831a3d0c6 (diff) |
document the tiny race
-rw-r--r-- | sbin/mount_portal/mount_portal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount_portal/mount_portal.c b/sbin/mount_portal/mount_portal.c index b6d6536d095..eea625b4408 100644 --- a/sbin/mount_portal/mount_portal.c +++ b/sbin/mount_portal/mount_portal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_portal.c,v 1.8 1997/06/10 15:35:41 kstailey Exp $ */ +/* $OpenBSD: mount_portal.c,v 1.9 1997/06/18 13:26:45 deraadt Exp $ */ /* $NetBSD: mount_portal.c,v 1.8 1996/04/13 01:31:54 jtc Exp $ */ /* @@ -47,7 +47,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)mount_portal.c 8.6 (Berkeley) 4/26/95"; #else -static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.8 1997/06/10 15:35:41 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.9 1997/06/18 13:26:45 deraadt Exp $"; #endif #endif /* not lint */ @@ -175,6 +175,7 @@ main(argc, argv) err(1, "socket(2)"); (void)unlink(un.sun_path); + /* XXX teeny race? */ if (bind(so, (struct sockaddr *) &un, sizeof(un)) < 0) err(1, "bind(2)"); (void)unlink(un.sun_path); |