<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/replace/replace.c, branch talloc-2.1.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>lib/replace: Make sure that replacement strto[u]ll does not reset errno unexpectedly</title>
<updated>2015-10-31T21:03:14+00:00</updated>
<author>
<name>Felix Janda</name>
<email>felix.janda@posteo.de</email>
</author>
<published>2015-10-22T10:37:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=89d254ddca20a36001c9dfdcfa6d8b9767f0f897'/>
<id>89d254ddca20a36001c9dfdcfa6d8b9767f0f897</id>
<content type='text'>
Fix the replacement functions for strtoll and strtoull to not set errno
to 0 if errno is EINVAL before calling, strto[u]ll does not modify errno
and the base is ok.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the replacement functions for strtoll and strtoull to not set errno
to 0 if errno is EINVAL before calling, strto[u]ll does not modify errno
and the base is ok.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/replace: Replace BSD strtoull by wrapping strtoull instead of strtouq</title>
<updated>2015-10-31T21:03:14+00:00</updated>
<author>
<name>Felix Janda</name>
<email>felix.janda@posteo.de</email>
</author>
<published>2015-10-22T10:32:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8343c707533e9acd53898778f386a1d93d57763f'/>
<id>8343c707533e9acd53898778f386a1d93d57763f</id>
<content type='text'>
Same as commit e50bf6d537ef09e936d19d6e0bf63f9bbc5d4818 but for strtoull
instead of strtoll.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Same as commit e50bf6d537ef09e936d19d6e0bf63f9bbc5d4818 but for strtoull
instead of strtoll.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libreplace: Fix the build on Solaris</title>
<updated>2015-10-01T00:55:21+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2015-09-26T22:57:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d9000cbc944fa58cc7b7bc509ce885d7b5f498af'/>
<id>d9000cbc944fa58cc7b7bc509ce885d7b5f498af</id>
<content type='text'>
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: Fix bug 11455</title>
<updated>2015-08-19T09:22:38+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2015-08-18T18:57:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=62d08ea715d1664a7600250abbd1dc83f3a33a4c'/>
<id>62d08ea715d1664a7600250abbd1dc83f3a33a4c</id>
<content type='text'>
Don't call rep_strtoull recursively

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;

Autobuild-User(master): Ralph Böhme &lt;slow@samba.org&gt;
Autobuild-Date(master): Wed Aug 19 11:22:38 CEST 2015 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't call rep_strtoull recursively

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;

Autobuild-User(master): Ralph Böhme &lt;slow@samba.org&gt;
Autobuild-Date(master): Wed Aug 19 11:22:38 CEST 2015 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: replace: Add strsep function (missing on Solaris).</title>
<updated>2015-07-29T00:24:55+00:00</updated>
<author>
<name>Jeremy Allison</name>
<email>jra@samba.org</email>
</author>
<published>2015-07-15T17:43:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f07b746ad3f3ee2fcbb65a0d452ed80f07c9e8f9'/>
<id>f07b746ad3f3ee2fcbb65a0d452ed80f07c9e8f9</id>
<content type='text'>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11359

Signed-off-by: Jeremy Allison &lt;jra@samba.org&gt;
Reviewed-by: Ira Cooper &lt;ira@wakeful.net&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Wed Jul 29 02:24:55 CEST 2015 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11359

Signed-off-by: Jeremy Allison &lt;jra@samba.org&gt;
Reviewed-by: Ira Cooper &lt;ira@wakeful.net&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Wed Jul 29 02:24:55 CEST 2015 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: Replace BSD strtoll by wrapping strtoll instead of strtoq</title>
<updated>2015-06-22T10:49:10+00:00</updated>
<author>
<name>Felix Janda</name>
<email>felix.janda@posteo.de</email>
</author>
<published>2015-06-21T10:03:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=e50bf6d537ef09e936d19d6e0bf63f9bbc5d4818'/>
<id>e50bf6d537ef09e936d19d6e0bf63f9bbc5d4818</id>
<content type='text'>
When it is detected that strtoll returns EINVAL not only in the case
that the base is not supported, HAVE_BSD_STRTOLL is declared and
strtoll is replaced. The current replacement code wraps strtoq in
order to replace strtoll and errors out when strtoq is missing.

In order to remove this possible error path, we can use strtoll instead
of strtoq since the code is only used when it is known that strtoll exists.

The fixes a compilation problem on linux systems using musl libc, which
has a BSD-like strtoll but no strtoq.

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: "Stefan (metze) Metzmacher" &lt;metze@samba.org&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Mon Jun 22 12:49:10 CEST 2015 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When it is detected that strtoll returns EINVAL not only in the case
that the base is not supported, HAVE_BSD_STRTOLL is declared and
strtoll is replaced. The current replacement code wraps strtoq in
order to replace strtoll and errors out when strtoq is missing.

In order to remove this possible error path, we can use strtoll instead
of strtoq since the code is only used when it is known that strtoll exists.

The fixes a compilation problem on linux systems using musl libc, which
has a BSD-like strtoll but no strtoq.

Signed-off-by: Felix Janda &lt;felix.janda@posteo.de&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: "Stefan (metze) Metzmacher" &lt;metze@samba.org&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Mon Jun 22 12:49:10 CEST 2015 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: clean-up strlcpy and add note on return value</title>
<updated>2015-03-26T13:54:20+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2015-03-26T11:21:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d02840a3a4d113e17a4225b0e7b1c893634a31d9'/>
<id>d02840a3a4d113e17a4225b0e7b1c893634a31d9</id>
<content type='text'>
The existing implementation uses single line ifs, making the code hard
to visually parse.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing implementation uses single line ifs, making the code hard
to visually parse.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: fix typo in variable name</title>
<updated>2013-11-28T17:16:27+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2013-11-28T14:56:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=fb042b35edc2333ec81b36359caac82673a457b5'/>
<id>fb042b35edc2333ec81b36359caac82673a457b5</id>
<content type='text'>
13550a2b5eed57084a5d9671d9493a9a2e08d7e3 added a typo causing
compilation failure.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;

Autobuild-User(master): David Disseldorp &lt;ddiss@samba.org&gt;
Autobuild-Date(master): Thu Nov 28 18:16:27 CET 2013 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
13550a2b5eed57084a5d9671d9493a9a2e08d7e3 added a typo causing
compilation failure.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;

Autobuild-User(master): David Disseldorp &lt;ddiss@samba.org&gt;
Autobuild-Date(master): Thu Nov 28 18:16:27 CET 2013 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: Don't run over dst in strlcat</title>
<updated>2013-11-28T11:33:10+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2013-11-28T08:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=13550a2b5eed57084a5d9671d9493a9a2e08d7e3'/>
<id>13550a2b5eed57084a5d9671d9493a9a2e08d7e3</id>
<content type='text'>
If "d" is not 0-terminated, the pure strlen will read beyond the end
of the given bufsize. strlcat in libbsd deliberately avoids this, so we
should do the same.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: David Disseldorp &lt;ddiss@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If "d" is not 0-terminated, the pure strlen will read beyond the end
of the given bufsize. strlcat in libbsd deliberately avoids this, so we
should do the same.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: David Disseldorp &lt;ddiss@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>heimdal_build: Try again to sort out the strerror_r mess</title>
<updated>2013-01-19T09:32:17+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2012-11-19T12:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=dda48146a2781fe685eeb9dc5194d142ee5ca0ef'/>
<id>dda48146a2781fe685eeb9dc5194d142ee5ca0ef</id>
<content type='text'>
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
