summaryrefslogtreecommitdiff
path: root/sbin/mount_portal/mount_portal.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-08 23:42:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-08 23:42:58 +0000
commit06dd88254205a58817bd749fd2691a2b9c8b45e8 (patch)
tree9f9333c69a0dc2c46716eb67aed9ac3db873cbce /sbin/mount_portal/mount_portal.c
parentac8fbb7fe3a16ab94862104630d77d9139812eda (diff)
Don't unlink() the same thing twice, ok millert@
Diffstat (limited to 'sbin/mount_portal/mount_portal.c')
-rw-r--r--sbin/mount_portal/mount_portal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/mount_portal/mount_portal.c b/sbin/mount_portal/mount_portal.c
index a50d0812286..ae095ca118b 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.16 2001/11/17 20:01:53 deraadt Exp $ */
+/* $OpenBSD: mount_portal.c,v 1.17 2001/12/08 23:42:57 miod 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.16 2001/11/17 20:01:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.17 2001/12/08 23:42:57 miod Exp $";
#endif
#endif /* not lint */
@@ -184,7 +184,6 @@ main(argc, argv)
/* XXX teeny race? */
if (bind(so, (struct sockaddr *) &un, sizeof(un)) < 0)
err(1, "bind(2)");
- (void)unlink(un.sun_path);
(void)listen(so, 5);