bsdtar default file name is /dev/st0

Bug #1510972 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libarchive (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. % lsb_release -rd
Description: Ubuntu Wily Werewolf (development branch)
Release: 15.10

2. % apt-cache policy bsdtar
bsdtar:
  Installed: 3.1.2-11build1
  Candidate: 3.1.2-11build1
  Version table:
 *** 3.1.2-11build1 0
        500 http://us.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
        100 /var/lib/dpkg/status

3. bsdtar -t should read from standard in if a file name is not specified

4. % bsdtar -t
bsdtar: Error opening archive: Failed to open '/dev/st0'

Note that if you specify -f - (aka stdin) it works as expected.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: bsdtar 3.1.2-11build1
ProcVersionSignature: Ubuntu 4.0.0-4.6-generic 4.0.7
Uname: Linux 4.0.0-4-generic x86_64
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
Date: Wed Oct 28 09:50:36 2015
InstallationDate: Installed on 2015-05-10 (170 days ago)
InstallationMedia: Ubuntu-Server 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.3)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libarchive
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ryan Harper (raharper) wrote :
Revision history for this message
Andreas Henriksson (andreas-fatal) wrote :

See http://sources.debian.net/src/libarchive/3.1.2-11/tar/bsdtar.c/#L74 for explanation/reason and where to hack if you want to change the behaviour. (See apple ifdef for reference.)

Feel free to convince upstream about changing the behaviour if you still think it should be done after investigating the above.

(// the Debian maintainer of libarchive.)

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.