[PATCH] Portability patches

Jeremy Allison jra at samba.org
Thu Oct 9 11:03:33 MDT 2014


On Thu, Oct 09, 2014 at 09:56:52AM -0700, Richard Sharpe wrote:
> On Thu, Oct 9, 2014 at 9:28 AM, Ralph Böhme <rb at sernet.de> wrote:
> > Hi all,
> >
> > attached please find two simple fixes for non-portable code that
> > exploded on my FreeBSD 10 testbox (the non-portable code, not the
> > fixes ;)
> 
> Hmmm, on the CentOS 6.5 (and thus RHEL 6.x) box I am currently using,
> it says of %m that:
> 
>        m      (Glibc  extension.)   Print output of strerror(errno).  No argu-
>               ment is required.
> 
> Isn't that going to cause more portability problems?

No, I think %m is correct. See here:

https://stackoverflow.com/questions/2329909/dynamic-string-input-using-scanfas

for details.


More information about the samba-technical mailing list