summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/rdist
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/rdist')
-rw-r--r--usr.bin/rdist/expand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rdist/expand.c b/usr.bin/rdist/expand.c
index a98056c..83178d0 100644
--- a/usr.bin/rdist/expand.c
+++ b/usr.bin/rdist/expand.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: expand.c,v 1.6 1998/04/06 06:18:20 charnier Exp $";
#endif /* not lint */
#include "defs.h"
@@ -508,7 +508,7 @@ slash:
while (*s)
addpath(*s++);
addpath('/');
- if (stat(path, &stb) == 0 && ISDIR(stb.st_mode))
+ if (stat(path, &stb) == 0 && ISDIR(stb.st_mode)) {
if (*p == '\0') {
if (which & E_TILDE)
Cat(path, "");
@@ -516,6 +516,7 @@ slash:
Cat(tilde, tpathp);
} else
expsh(p);
+ }
pathp = spathp;
*pathp = '\0';
return (0);
OpenPOWER on IntegriCloud