Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
| 4 | Signed-off-by: Ronan Le Martret <ronan.lemartret@open.eurogiciel.org> |
| 5 | |
| 6 | |
| 7 | Index: rpm-4.11.2/build/files.c |
| 8 | =================================================================== |
| 9 | --- rpm-4.11.2.orig/build/files.c |
| 10 | +++ rpm-4.11.2/build/files.c |
| 11 | @@ -1321,12 +1321,6 @@ static rpmRC addFile(FileList fl, const |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | - /* Error out when a non-directory is specified as one in spec */ |
| 16 | - if (fl->cur.isDir && (statp == &statbuf) && !S_ISDIR(statp->st_mode)) { |
| 17 | - rpmlog(RPMLOG_ERR, _("Not a directory: %s\n"), diskPath); |
| 18 | - goto exit; |
| 19 | - } |
| 20 | - |
| 21 | /* Don't recurse into explicit %dir, don't double-recurse from fts */ |
| 22 | if ((fl->cur.isDir != 1) && (statp == &statbuf) && S_ISDIR(statp->st_mode)) { |
| 23 | return recurseDir(fl, diskPath); |