Issue Details (XML | Word | Printable)

Key: MBS-4074
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Oliver Charles
Reporter: Larry Gilbert
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

MBImport.pl: use head -c to be more portable

Created: 27/Dec/11 01:25 AM   Updated: 20/Aug/12 11:57 AM   Resolved: 20/Aug/12 11:57 AM
Component/s: Admin
Affects Version/s: None
Fix Version/s: Bug fixes, 2012-09-03

File Attachments: 1. Text File 0001-Using-dd-instead-of-head-to-bite-off-100K.patch (0.8 kB) 27/Dec/11 01:25 AM - Larry Gilbert



 Description  « Hide

I've been playing with the MusicBrainz server in Mac OS X (10.6), and I found that I had to change the use of "head --bytes" in MBImport.pl because BSD's head utility apparently doesn't support --bytes.

I changed it to use dd instead, which I hope is more portable.



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 14/Aug/12 02:07 PM

Your patch isn't actually correct, because $cat_cmd could be gunzip, and you're patch assumes that $tar is uncompressed (as it passes it straight to dd). I've used the -c flag to head, which I believe is present in OS X.