Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shar: uudecode problem #677

Merged
merged 1 commit into from
Jul 22, 2024
Merged

shar: uudecode problem #677

merged 1 commit into from
Jul 22, 2024

Conversation

mknos
Copy link
Contributor

@mknos mknos commented Jul 22, 2024

  • For binary files, shar will construct input that is passed to the uudecode command
  • When testing files from /bin on my Linux system, I saw decode errors when extracting with "sh new.shar"
  • The file sizes didn't match
  • When inspecting the output of shar from GNU sharutils, there was a terminating line with only a backtick immediately before the "end" line
  • Adding the backtick line in this version makes uudecode work correctly; I tested this against a few files from my /bin
  • binmode() isn't needed for STDOUT because shar always prints text output
  • Convert FH to a regular variable
  • The command line for decoding a binary file doesn't need a pipe through sed because the 'X' prefix letter is never added to the uuencoded data
%sh bash.shar  # before patch
x - bash
uudecode fatal error:
standard input: Short file
^C
%cmp bash /bin/bash 
cmp: EOF on /bin/bash after byte 974312, in line 14510

* For binary input, shar will construct a file that can be passed to the uudecode command
* When testing this against files from /bin on my linux system, I saw decode errors when extracting with "sh new.shar"
* The file sizes didn't match
* When inspecting the output of shar from GNU sharutils, there was a terminating line with only a backtick before the "end" line in the data passed to uudecode
* Adding the backtick line in this version makes uudecode work correctly; I tested this against a few files from my /bin
* binmode() isn't needed for STDOUT because shar always prints text output
* Convert FH to a regular variable
* The commandline for decoding a binary file doesn't need a pipe through sed because the 'X' prefix letter is never added to the uuencoded data

%sh bash.shar  # before patch
x - bash
uudecode fatal error:
standard input: Short file
^C
%cmp bash /bin/bash 
cmp: EOF on /bin/bash after byte 974312, in line 14510
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: shar The shar program labels Jul 22, 2024
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:32 — with GitHub Actions Inactive
@mknos mknos temporarily deployed to automated_testing July 22, 2024 02:33 — with GitHub Actions Inactive
@coveralls
Copy link

coveralls commented Jul 22, 2024

Pull Request Test Coverage Report for Build 10033658436

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.7%) to 76.268%

Totals Coverage Status
Change from base Build 10026365693: -0.7%
Covered Lines: 376
Relevant Lines: 493

💛 - Coveralls

@briandfoy briandfoy self-assigned this Jul 22, 2024
@briandfoy briandfoy merged commit 45cca26 into briandfoy:master Jul 22, 2024
22 of 23 checks passed
@briandfoy briandfoy removed the Priority: low get to this whenever label Jul 22, 2024
@briandfoy briandfoy added the Status: accepted The fix is accepted label Jul 22, 2024
@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Program: shar The shar program Status: released there is a new release with this fix Type: enhancement improve a feature that already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants