Bug 1345841 - showing diff of two binary files is nonsense
Summary: showing diff of two binary files is nonsense
Keywords:
Status: CLOSED DUPLICATE of bug 1395881
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Configuration Management
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1345843 1395881
TreeView+ depends on / blocked
 
Reported: 2016-06-13 09:57 UTC by Pavel Studeník
Modified: 2017-10-17 12:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1345843 (view as bug list)
Environment:
Last Closed: 2017-10-13 15:16:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2016-06-13 09:57:46 UTC
Description of problem:
I created configuration channels and upload some plain text and some binary files (zips) to them. When I have to compare all local files then I received strings of binary file. I think that it is not good solution. We can look at behaviour bash application 'diff' and we can see:

>> diff /root/binary.dat /dev/null 
Binary files /root/binary.dat and /dev/null differ

Version-Release number of selected component (if applicable):
rhncfg-5.10.74-10.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. create configure channel with binary file
2. subscribe this channel
3. rhncfg-client diff /file.binary
   rhncfg-namager diff /file.binary -c channel

Actual results:
diff two binary files:
+k]r >W_?S-LB9l쳼Ef[lQUlˋe ?LV׊+2az7PՓnYq2Gbq&<5˂r`laT䣛S/5U^>'
                                                               4[sUO.&t[gn/Sێ;n4M=8Wg5|Jΐ(c=IHI-~=0|l(D)$>jm5}'-VY+?M
$zİ23Zo8[}3\0d>wN(nGT1oNj\4!t)u
-kl#GFe9-^Ǟ@S ?0bkVp2fBSUZ}Qo-&ƂC`JI7-jIFU*3o}R-Xy-sy2_P-XukƁx_bM O5XZV&(plR4+"y=-t3    `fq


Expected results:
something as:
Binary files /root/binary.dat and /dev/null differ


Note You need to log in before you can comment on or make changes to this bug.