From 1f5f436826505df6dfabe1de9724424fc40fae23 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 10 May 2015 00:21:42 -0500 Subject: Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just symfollow true/false.) --- toys/posix/cp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'toys/posix/cp.c') diff --git a/toys/posix/cp.c b/toys/posix/cp.c index df8269f3..803bff85 100644 --- a/toys/posix/cp.c +++ b/toys/posix/cp.c @@ -340,9 +340,8 @@ void cp_main(void) // Skip nonexistent sources if (rc) { - int symfollow = DIRTREE_SYMFOLLOW*!!(toys.optflags & (FLAG_H|FLAG_L)); - - if (errno != EXDEV || !(new = dirtree_start(src, symfollow))) + if (errno!=EXDEV || + !(new = dirtree_start(src, toys.optflags&(FLAG_H|FLAG_L)))) perror_msg("bad '%s'", src); else dirtree_handle_callback(new, TT.callback); } -- cgit v1.2.3