From 296d0fe8f85ef1b2703c189681dbb22d66f72852 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 18 Jun 1997 13:26:46 +0000 Subject: document the tiny race --- sbin/mount_portal/mount_portal.c | 5 +++-- 1 file 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); -- cgit v1.2.3