diff options
author | Paride Legovini <pl@ninthfloor.org> | 2016-09-28 18:59:15 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2016-09-28 19:27:48 +0200 |
commit | 86dc6860f9def64ad554a7c69eeae28203661e2c (patch) | |
tree | fc80e651e96c22990c941091985cd1e992403a1a /main.c | |
parent | d69f39e3aad6a7c5fb110dabb068a7bbb2229750 (diff) |
Allow opening directories non-recursively
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -818,11 +818,7 @@ int main(int argc, char **argv) if (!S_ISDIR(fstats.st_mode)) { check_add_file(filename, true); } else { - if (!options->recursive) { - error(0, 0, "%s: Is a directory", filename); - continue; - } - if (r_opendir(&dir, filename) < 0) { + if (r_opendir(&dir, filename, options->recursive) < 0) { error(0, errno, "%s", filename); continue; } |