diff options
Diffstat (limited to 'toys/posix/cp.c')
-rw-r--r-- | toys/posix/cp.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |