diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-07-09 20:47:17 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-07-09 20:47:17 -0800 |
| commit | d053fde6bec64a1e61cdb341995f39b77a435670 (patch) | |
| tree | b6d24edb3f2a7c095b34b637565054c35dac9f56 | |
| parent | 725aa7a36fe831088ea3944f29ff87eea31875f7 (diff) | |
| download | securecoreutils-d053fde6bec64a1e61cdb341995f39b77a435670.tar.gz securecoreutils-d053fde6bec64a1e61cdb341995f39b77a435670.tar.bz2 securecoreutils-d053fde6bec64a1e61cdb341995f39b77a435670.tar.xz securecoreutils-d053fde6bec64a1e61cdb341995f39b77a435670.zip | |
Fixing touch widget to allow directories
| -rw-r--r-- | src/widget-touch.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/widget-touch.c b/src/widget-touch.c index 4c1fa29..1aa3a19 100644 --- a/src/widget-touch.c +++ b/src/widget-touch.c | |||
| @@ -238,8 +238,11 @@ int scu_widget_touch(scu_config * cnf) | |||
| 238 | // checks file for restriction validations | 238 | // checks file for restriction validations |
| 239 | if ((rc = scu_pathcheck(cnf->argv[optind], sflags)) != 0) | 239 | if ((rc = scu_pathcheck(cnf->argv[optind], sflags)) != 0) |
| 240 | { | 240 | { |
| 241 | fprintf(stderr, "%s: %s: %s\n", PROGRAM_NAME, cnf->widget->name, scu_strerror(rc)); | 241 | if ((rc = scu_pathcheck(cnf->argv[optind], sflags | SCU_ODIR)) != 0) |
| 242 | return(1); | 242 | { |
| 243 | fprintf(stderr, "%s: %s: %s\n", PROGRAM_NAME, cnf->widget->name, scu_strerror(rc)); | ||
| 244 | return(1); | ||
| 245 | }; | ||
| 243 | }; | 246 | }; |
| 244 | 247 | ||
| 245 | 248 | ||
