View Issue Details

IDProjectCategoryView StatusLast Update
0000030fileGeneralpublic2018-08-20 15:52
Reportercbiedl Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.34 
Fixed in Version5.35 
Summary0000030: Different behaviour for setparam with value zero
DescriptionHi there,

the file program ignores any parameter set using --parameter if the value is zero (file.c:430). At the same time, an according magic_setparam call does set the value.

It might be questionable whether the value zero should be supported - in my opinion it should, even if just for tests and weird experiments. However, I'd appreciate if the file program and libmagic would show the same behaviour. The current situation created some confusion when trying to test effects of --parameter before using the function in an application.

Regards,
TagsNo tags attached.

Activities

christos

2018-08-20 15:52

manager   ~0000066

fixed

Issue History

Date Modified Username Field Change
2018-08-16 18:47 cbiedl New Issue
2018-08-20 15:52 christos Assigned To => christos
2018-08-20 15:52 christos Status new => assigned
2018-08-20 15:52 christos Status assigned => resolved
2018-08-20 15:52 christos Resolution open => fixed
2018-08-20 15:52 christos Fixed in Version => 5.35
2018-08-20 15:52 christos Note Added: 0000066