diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-29 00:24:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-29 00:24:17 +0000 |
commit | d604b6004b2ee211ca333d6d8245cd8267347eae (patch) | |
tree | d09be59f972519901a436c39d69595dff11388d2 /bin/cp/cp.c | |
parent | d079af4331107f7f0eaa1214612cb65d4aad1199 (diff) |
spacing
Diffstat (limited to 'bin/cp/cp.c')
-rw-r--r-- | bin/cp/cp.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 9885215c49b..2c5430e62b4 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.26 2003/06/02 23:32:06 millert Exp $ */ +/* $OpenBSD: cp.c,v 1.27 2003/07/29 00:24:14 deraadt Exp $ */ /* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: cp.c,v 1.26 2003/06/02 23:32:06 millert Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.27 2003/07/29 00:24:14 deraadt Exp $"; #endif #endif /* not lint */ @@ -249,13 +249,11 @@ find_last_component(char *path) p = path; else { /* Special case foo/ */ - if (!*(p+1)) { - while ((p >= path) && - *p == '/') + if (!*(p+1)) { + while ((p >= path) && *p == '/') p--; - while ((p >= path) && - *p != '/') + while ((p >= path) && *p != '/') p--; } |