Incorrect pbget/pbput/pbputs(1) manual page

Bug #1989579 reported by Brian Foster
8
This bug affects 1 person
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://pastebin.com is used by default.

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
ProcVersionSignature: Ubuntu 5.15.0-47.51-generic 5.15.46
Uname: Linux 5.15.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
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)
PackageArchitecture: all
SourcePackage: pastebinit
UpgradeStatus: Upgraded to jammy on 2022-09-04 (9 days ago)

Revision history for this message
Brian Foster (blfoster) wrote :
tags: added: manpage
Revision history for this message
Nick Rosbrook (enr0n) wrote :

It would be good to update the man pages for correctness.

Changed in pastebinit (Ubuntu):
status: New → Triaged
importance: Undecided → Low
tags: added: bitesize
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.