diff options
author | imp <imp@cvs.openbsd.org> | 1996-09-22 20:17:55 +0000 |
---|---|---|
committer | imp <imp@cvs.openbsd.org> | 1996-09-22 20:17:55 +0000 |
commit | 225ce63f48419f38d25074d251906434051f0a81 (patch) | |
tree | f418187a743a6e9ee59a11be64c321a0cabf0925 | |
parent | 84c3993bfa6462d5f2492dba6b7d27e611c7ba0c (diff) |
Pedanitic indentation: spaces -> tabs
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index d65cdd265b7..b9abb6adce9 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xinstall.c,v 1.7 1996/08/18 22:08:31 millert Exp $ */ +/* $OpenBSD: xinstall.c,v 1.8 1996/09/22 20:17:54 imp Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93"; #endif -static char rcsid[] = "$OpenBSD: xinstall.c,v 1.7 1996/08/18 22:08:31 millert Exp $"; +static char rcsid[] = "$OpenBSD: xinstall.c,v 1.8 1996/09/22 20:17:54 imp Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -533,28 +533,28 @@ void install_dir(path) char *path; { - register char *p; - struct stat sb; - int ch; - - for (p = path;; ++p) - if (!*p || (p != path && *p == '/')) { - ch = *p; - *p = '\0'; - if (stat(path, &sb)) { - if (errno != ENOENT || mkdir(path, 0777) < 0) { + register char *p; + struct stat sb; + int ch; + + for (p = path;; ++p) + if (!*p || (p != path && *p == '/')) { + ch = *p; + *p = '\0'; + if (stat(path, &sb)) { + if (errno != ENOENT || mkdir(path, 0777) < 0) { err(EX_OSERR, "%s", path); /* NOTREACHED */ - } - } - if (!(*p = ch)) + } + } + if (!(*p = ch)) break; - } + } if (((gid != (gid_t)-1 || uid != (uid_t)-1) && chown(path, uid, gid)) || - chmod(path, mode)) { - warn("%s", path); - } + chmod(path, mode)) { + warn("%s", path); + } } /* |