Bug 19642 - --help von univention-scp gibt falsche Parameterreihenfolge aus
--help von univention-scp gibt falsche Parameterreihenfolge aus
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: SSH
UCS 2.4
Other Linux
: P5 minor (vote)
: UCS 3.0-2
Assigned To: Jürgen Kahrs
Florian Best
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-25 12:28 CEST by Sönke Schwardt-Krummrich
Modified: 2012-07-20 15:25 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2010-08-25 12:28:41 CEST
# univention-scp --help
[...]
univention-scp <pwd_file> [options] files [user@]host:[path]
[...]
Options:
  -timeout:                        timeout for operation in seconds


Der -timeout Parameter muss VOR <pwd_file> angegeben werden. Sonst wird die Meldung "scp: ambiguous target" zurückgegeben.

Für univention-ssh (gleicher Code) scheint die Hilfe korrekt zu sein.
Comment 1 Jürgen Kahrs univentionstaff 2012-06-07 15:04:07 CEST
Es musste nur eine Zeile korrigiert werden:

--- univention-ssh.in   (Revision 33477)
+++ univention-ssh.in   (Arbeitskopie)
@@ -98,7 +98,7 @@
                Copyright (c) 2001-2011 Univention GmbH, Germany
 
                Syntax:
-                 %(cmd)s <pwd_file> [options] files [user@]host:[path]
+                 %(cmd)s [-timeout timeout] <pwd_file> [options] files [user@]host:[path]
                  %(cmd)s [--help] [--version]


Paket ist gebaut und testweise installiert, Problem ist behoben.
Comment 2 Florian Best univentionstaff 2012-06-19 15:16:56 CEST
in univention-ssh, univention-scp und univention-ssh-rsync ist zwar jetzt die syntax-Zeile richtig (univention-ssh [-timeout timeout] <pwd_file> [options] [user@]host <command>), aber dadurch müsste timeout doch unterhalb von "Parameters" und nicht unterhalb von "Options" angezeigt werden.

Wenn das so aktuell OK ist kann der Bug wieder zu, ansonsten muss das noch angepasst werden.

univention-ssh 5.0.0-4.38.201206071450
Comment 3 Jürgen Kahrs univentionstaff 2012-06-20 08:40:05 CEST
Guter Einwand, streng genommen müsste systematisch "-timeout" unter die Options und "timeout" unter die Parameters. Das erschien mir aber zu redundant, deshalb führen wir weiterhin nur "-timeout" unter den Options auf und erwähnen dabei, dess es um ein timeout in Sekunden geht.
Comment 4 Florian Best univentionstaff 2012-06-20 08:43:47 CEST
(In reply to comment #3)
> Guter Einwand, streng genommen müsste systematisch "-timeout" unter die Options
> und "timeout" unter die Parameters. Das erschien mir aber zu redundant, deshalb
> führen wir weiterhin nur "-timeout" unter den Options auf und erwähnen dabei,
> dess es um ein timeout in Sekunden geht.
Ja, -timout wird wegen führendem "-" als "option" gewertet.
Comment 5 Stefan Gohmann univentionstaff 2012-07-20 15:25:26 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".