Incorrect pbget/pbput/pbputs(1) manual page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pastebinit (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
That manual page says (at the end of the"DESCRIPTION" section):
In any case the uploaded/downloaded data is optionally tar(1) archived, always
lzma(1) compressed, optionally gpg(1) encrypted, and always base64(1) encoded.
http://
NO. Both pbput & pbputs are hardwired to use paste.ubuntu.com (for which pastebinit(1) appears to be configured to uses HTTPS, not HTTP), and an alternative site cannot be specified (from manual inspection of the /usr/bin/pbput script). An alternative site URL can only be specified with pbget.
All of the examples in the "EXAMPLES" section use the default, which is incorrectly shown as pastebin.com
In addition, but not mentioned in the manual page, both pbput & pbputs have the very surprising behaviour (again, from script inspection) that when given one argument, which is not readable (and not empty), it is assumed to be a GPG_USER (for gpg encryption). Hence, a typo (e.g.) in the intended FILENAME is going to do something very strange: Both will read stdin, albeit only pbputs will then (try to) encrypt. There is no warning or error message per se (except, I presume, for pbputs when there is no such GPG_USER (from gpg)?).
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: pastebinit 1.5.1-1ubuntu1
ProcVersionSign
Uname: Linux 5.15.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Sep 14 12:04:55 2022
InstallationDate: Installed on 2020-10-19 (694 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitec
SourcePackage: pastebinit
UpgradeStatus: Upgraded to jammy on 2022-09-04 (9 days ago)
tags: | added: manpage |
It would be good to update the man pages for correctness.