summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorThomas Graichen <graichen@cvs.openbsd.org>1997-07-14 14:13:18 +0000
committerThomas Graichen <graichen@cvs.openbsd.org>1997-07-14 14:13:18 +0000
commit2af6eb3a46d103901c4bb1249735e6278c254434 (patch)
tree885556fa26df8de3628ba62fd113d621d4a07d68 /usr.sbin
parent3af2e6ab1cd1f3e78ad8ce0dc8ecc73e73b7ab8b (diff)
sometimes - so at least it seems - also theo does'nt check what he is
committing :-) ... i hope i got it right now
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/lib/pen.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 835a044e6c7..e31c8ff8fce 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: pen.c,v 1.4 1997/06/17 08:39:47 deraadt Exp $ */
+/* $OpenBSD: pen.c,v 1.5 1997/07/14 14:13:17 graichen Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: pen.c,v 1.4 1997/06/17 08:39:47 deraadt Exp $";
+static const char *rcsid = "$OpenBSD: pen.c,v 1.5 1997/07/14 14:13:17 graichen Exp $";
#endif
/*
@@ -90,10 +90,14 @@ make_playpen(char *pen, size_t sz)
umask(um);
return NULL;
}
- if (mkdir(pen, 0755) == FAIL && i++ < 100) {
- /* try again! */
- continue;
- }
+
+ if (mkdir(pen, 0755) == FAIL) {
+ if (i++ < 100) {
+ /* try again! */
+ continue;
+ }
+ } else
+ break;
barf("Can't mkdir '%s'.", pen);
umask(um);