[ 
https://issues.apache.org/jira/browse/HADOOP-7476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068073#comment-13068073
 ] 

Allen Wittenauer commented on HADOOP-7476:
------------------------------------------

OS X and Solaris.  As usual, this typically means removing the GNU-only crud*.  
At this point, my task-controller uses fgetln() instead of getline().  Since 
I'm lazy, it is easier to find code we can import that implements fgetln() in a 
portable fashion than getline(). (Altho if getline() is present w/out fgetln(), 
I've got a wrapper that implements fgetln() with getline()).

* Technically, getline() was added to super-recent POSIX, but none of the 
platforms that I have access to have that other than glibc-based machines.  So 
it isn't that portable yet. :(

> task-controller can drop last char from config file
> ---------------------------------------------------
>
>                 Key: HADOOP-7476
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7476
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.20.203.0
>            Reporter: Allen Wittenauer
>            Priority: Trivial
>
> It looks as though task-controller's configuration file reader assumes that 
> the output of getline() always ends with \n\0.  This assumption does not 
> appear to be safe.  See comments for more. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to