File openssh-bsc1148566-scp-show-filename-match-patterns-in-verbose-mode.patch of Package openssh-askpass-gnome.29884

@@ -, +, @@ 
---
 scp.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
--- a/scp.c	
+++ a/scp.c	
@@ -1482,8 +1482,16 @@ sink(int argc, char **argv, const char *src)
 				if (fnmatch(patterns[n], cp, 0) == 0)
 					break;
 			}
-			if (n >= npatterns)
+			if (n >= npatterns) {
+				if (verbose_mode) {
+					fprintf(stderr, "expected filenames:\n");
+					for (n = 0; n < npatterns; n++)
+						fprintf(stderr, "  \"%s\"\n", patterns[n]);
+					fprintf(stderr, "incoming filename:\n");
+					fprintf(stderr, "  \"%s\"\n", cp);
+				}
 				SCREWUP("filename does not match request");
+			}
 		}
 		if (targisdir) {
 			static char *namebuf;
-- 
openSUSE Build Service is sponsored by