View Issue Details

IDProjectCategoryView StatusLast Update
0000529fileGeneralpublic2024-06-19 16:53
Reportermarcoxa Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Fixed in VersionHEAD 
Summary0000529: NETDATA detection in magic file 'ibm370' needx to be fixed.
DescriptionHi

the last record in the `ibm370` magic file deals with IBM NETDATA (or XMIT) file format. It reads.

```
# NETDATA (https://en.wikipedia.org/wiki/NETDATA)
# -\INMR01 In EBCDIC
0 string \x60\xe0\xc9\xd5\xd4\xd9\xf0\xf1 IBM NETDATA file
```

This is incorrect as the first two bytes of the first record of a NETDATA (XMIT) file are not necessarily fixed (they contain the logical record length (up to 255) and flags. In fact, it does not quite work (just a check some .XMI files from cbttape.org)

The following is better at it just check the mnemonic of the first, mandatory, record.
```
# INMR01 In EBCDIC starting at offset 2
2 string \xc9\xd5\xd4\xd9\xf0\xf1 IBM NETDATA file
```

All the best

Marco

TagsNo tags attached.

Activities

christos

2024-06-19 16:53

manager   ~0004058

Fixed, thanks

Issue History

Date Modified Username Field Change
2024-05-18 19:14 marcoxa New Issue
2024-06-19 16:53 christos Assigned To => christos
2024-06-19 16:53 christos Status new => assigned
2024-06-19 16:53 christos Status assigned => resolved
2024-06-19 16:53 christos Resolution open => fixed
2024-06-19 16:53 christos Fixed in Version => HEAD
2024-06-19 16:53 christos Note Added: 0004058