Bug 219387 - uncompress is in conflict with POSIX
Summary: uncompress is in conflict with POSIX
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.3-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: Jilles Tjoelker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-18 16:59 UTC by Jörg Schilling
Modified: 2017-07-01 13:07 UTC (History)
1 user (show)

See Also:
jilles: mfc-stable11+
jilles: mfc-stable10+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Schilling 2017-05-18 16:59:47 UTC
uncompress -c on FreeBSD currently disallows to specify more than one
file name argument but POSIX requires this.
Comment 1 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-05-19 17:54:05 UTC
Assign to -standards.
Comment 2 Jilles Tjoelker freebsd_committer freebsd_triage 2017-05-20 22:05:32 UTC
Hi,

Thanks for the report. I agree for uncompress -c.

Allowing multiple filenames does not seem to make sense for compress -c, since the resulting stream cannot be decompressed.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-05-21 14:35:58 UTC
A commit references this bug:

Author: jilles
Date: Sun May 21 14:35:16 UTC 2017
New revision: 318592
URL: https://svnweb.freebsd.org/changeset/base/318592

Log:
  compress: Allow uncompress -c with multiple pathnames, as required by POSIX.

  Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating
  the uncompressed data.

  Passing multiple pathnames to compress -c remains disallowed, since the
  result cannot be decompressed.

  PR:		219387
  Reported by:	J?rg Schilling

Changes:
  head/usr.bin/compress/compress.c
  head/usr.bin/compress/tests/compress_test.sh
Comment 4 Jilles Tjoelker freebsd_committer freebsd_triage 2017-05-21 14:44:11 UTC
Fixed in head, waiting for MFC test period.
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-05-31 21:55:27 UTC
A commit references this bug:

Author: jilles
Date: Wed May 31 21:54:21 UTC 2017
New revision: 319362
URL: https://svnweb.freebsd.org/changeset/base/319362

Log:
  MFC r318592: compress: Allow uncompress -c with multiple pathnames,
  as required by POSIX.

  Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating
  the uncompressed data.

  Passing multiple pathnames to compress -c remains disallowed, since the
  result cannot be decompressed.

  PR:		219387

Changes:
_U  stable/11/
  stable/11/usr.bin/compress/compress.c
  stable/11/usr.bin/compress/tests/compress_test.sh
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-07-01 13:04:04 UTC
A commit references this bug:

Author: jilles
Date: Sat Jul  1 13:03:03 UTC 2017
New revision: 320532
URL: https://svnweb.freebsd.org/changeset/base/320532

Log:
  MFC r318592: compress: Allow uncompress -c with multiple pathnames,
  as required by POSIX.

  Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating
  the uncompressed data.

  Passing multiple pathnames to compress -c remains disallowed, since the
  result cannot be decompressed.

  PR:		219387

Changes:
_U  stable/10/
  stable/10/usr.bin/compress/compress.c
  stable/10/usr.bin/compress/tests/compress_test.sh