[Slackbuilds-users] Odd character in JSONObject.info file

Antonio Hernández Blas hba.nihilismus at gmail.com
Sun Feb 17 01:26:28 UTC 2013


On Sat, Feb 16, 2013 at 4:37 AM, Yaroslav Panych <panych.y at gmail.com> wrote:
> Confirmed, it is BOM there(and not only in .info file). And it there
> more than two. weeks. But SlackBuild still buildable.
>
> 2013/2/16 Vito De Tullio <vito.detullio at gmail.com>:
>> Chess Griffin wrote:
>>
>>> If you open up JSONObject.info in nano (not seen in vim), there is an
>>> odd character at the start of the PRGNAM= line:
>>>
>>> 1»¿PRGNAM=JSONObject
>>>
>>> While parsing the .info files for PRGNAM, bash appears to try and
>>> execute this line, which may be a security issue.  Anyway, a simple
>>> edit of that file in the repo should take care of it.
>>
>> it's the BOM... but why is it there? shouldn't the file contains just ASCII
>> characters??
>>
>> btw: it "breaks" sbopkg:
>>
>> # sbopkg -o
>> [ Checking for obsolete sources ]
>> This may take a few moments. Press <ESC> to abort.
>>  52%[==========================================================================================================
>> ]/var/lib/sbopkg/SBo/14.0/development/JSONObject/JSONObject.info: line 1:
>> PRGNAM=JSONObject: command not found
>> 100%[=============================================================================================================================================================================================================]
>> It appears there are no obsolete sources in /var/cache/sbopkg.
>> #
>>
>>
>>
>> --
>> ZeD
>>
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - http://slackbuilds.org/faq/
>>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>

All JSONObject's files are UTF-8 with BOM:

JSONObject.SlackBuild: Bourne-Again shell script, UTF-8 Unicode (with
BOM) text executable
JSONObject.info:       UTF-8 Unicode (with BOM) text
README:                UTF-8 Unicode (with BOM) text
slack-desc:            UTF-8 Unicode (with BOM) text

And BTW, JSONObject.SlackBuild has as shebang "#!/bin/bash" and, as
far as i know, it should be "#!/bin/sh"

-- 
-
hba | Antonio Hernández Blas | Oaxaca, México, Mx.
http://hba.dyndns.info | irc://irc.freenode.org/hba,isnick,needpass
https://github.com/nihilismus | https://bitbucket.org/nihilismus
https://twitter.com/nihilipster | http://www.last.fm/user/nihilipster


More information about the SlackBuilds-users mailing list