Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
openssh-askpass-gnome.17572
openssh-7.6p1-sftp_print_diagnostic_messages.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssh-7.6p1-sftp_print_diagnostic_messages.patch of Package openssh-askpass-gnome.17572
# HG changeset patch # Parent 3395972f5ac928298f853c8544db5fecd581c9fb Put back sftp client diagnostic messages in batch mode bsc#1023275 Index: openssh-7.6p1/sftp.0 =================================================================== --- openssh-7.6p1.orig/sftp.0 2019-03-12 14:33:57.263373574 +0100 +++ openssh-7.6p1/sftp.0 2019-03-12 14:38:36.836939175 +0100 @@ -161,6 +161,9 @@ DESCRIPTION -p Preserves modification times, access times, and modes from the original files transferred. + -Q Not-so-quiet batch mode: forces printing of diagnostic messages + in batch mode. + -q Quiet mode: disables the progress meter as well as warning and diagnostic messages from ssh(1). Index: openssh-7.6p1/sftp.1 =================================================================== --- openssh-7.6p1.orig/sftp.1 2019-03-12 14:33:57.263373574 +0100 +++ openssh-7.6p1/sftp.1 2019-03-12 14:38:36.836939175 +0100 @@ -250,6 +250,9 @@ Specifies the port to connect to on the .It Fl p Preserves modification times, access times, and modes from the original files transferred. +.It Fl Q +Not-so-quiet batch mode: forces printing of diagnostic messages +in batch mode. .It Fl q Quiet mode: disables the progress meter as well as warning and diagnostic messages from Index: openssh-7.6p1/sftp.c =================================================================== --- openssh-7.6p1.orig/sftp.c 2019-03-12 14:33:57.263373574 +0100 +++ openssh-7.6p1/sftp.c 2019-03-12 14:38:36.836939175 +0100 @@ -85,6 +85,8 @@ static pid_t sshpid = -1; /* Suppress diagnositic messages */ int quiet = 0; +/* Force diagnositic messages in batch mode */ +int loud = 0; /* This is set to 0 if the progressmeter is not desired. */ int showprogress = 1; @@ -2345,7 +2347,7 @@ main(int argc, char **argv) infile = stdin; while ((ch = getopt(argc, argv, - "1246afhpqrvCc:D:i:l:o:s:S:b:B:F:P:R:")) != -1) { + "1246afhpQqrvCc:D:i:l:o:s:S:b:B:F:P:R:")) != -1) { switch (ch) { /* Passed through to ssh(1) */ case '4': @@ -2361,6 +2363,9 @@ main(int argc, char **argv) addargs(&args, "-%c", ch); addargs(&args, "%s", optarg); break; + case 'Q': + loud = 1; + break; case 'q': ll = SYSLOG_LEVEL_ERROR; quiet = 1; @@ -2442,6 +2447,8 @@ main(int argc, char **argv) usage(); } } + if (batchmode && loud) + quiet = 0; if (!isatty(STDERR_FILENO)) showprogress = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor