<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/replace/replace.c, branch talloc-2.1.3</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>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>
<entry>
<title>replace: Fix compilation of rep_mkstemp</title>
<updated>2013-01-09T06:18:33+00:00</updated>
<author>
<name>Jesper Larsen</name>
<email>jesper.larsen@ixonos.com</email>
</author>
<published>2013-01-04T12:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=411440d2d9085fe9db0e3c26c025c6b94d02c00f'/>
<id>411440d2d9085fe9db0e3c26c025c6b94d02c00f</id>
<content type='text'>
Commit 1fbc185 removed the variable 'p'.
Use the equivalent variable 'template' instead.

Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Wed Jan  9 07:18:33 CET 2013 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 1fbc185 removed the variable 'p'.
Use the equivalent variable 'template' instead.

Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Wed Jan  9 07:18:33 CET 2013 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/replace: Do not use STRERROR_R_PROTO_COMPATIBLE as only roken.h sets this</title>
<updated>2012-11-22T09:21:16+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=c704f0daa5e81911ea2b507323b5005303f61e91'/>
<id>c704f0daa5e81911ea2b507323b5005303f61e91</id>
<content type='text'>
Currently, we put strerror_r into libreplace even on systems with strerror_r.

Andrew Bartlett

Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, we put strerror_r into libreplace even on systems with strerror_r.

Andrew Bartlett

Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/replace: replace all *printf function if we replace snprintf (bug #9390)</title>
<updated>2012-11-14T18:41:14+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2012-11-13T13:07:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a15da3625850d97b3da1b02308c870f820007c52'/>
<id>a15da3625850d97b3da1b02308c870f820007c52</id>
<content type='text'>
This fixes segfaults in log level = 10 on Solaris.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Björn Jacke &lt;bj@sernet.de&gt;

Autobuild-User(master): Björn Jacke &lt;bj@sernet.de&gt;
Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes segfaults in log level = 10 on Solaris.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Björn Jacke &lt;bj@sernet.de&gt;

Autobuild-User(master): Björn Jacke &lt;bj@sernet.de&gt;
Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: Avoid returning value in void setproctitle() replacement.</title>
<updated>2012-09-25T04:38:40+00:00</updated>
<author>
<name>Jelmer Vernooij</name>
<email>jelmer@samba.org</email>
</author>
<published>2012-09-24T23:22:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6749cfb418cd8e21df626c7144f1f4db3b6770e7'/>
<id>6749cfb418cd8e21df626c7144f1f4db3b6770e7</id>
<content type='text'>
Autobuild-User(master): Jelmer Vernooij &lt;jelmer@samba.org&gt;
Autobuild-Date(master): Tue Sep 25 06:38:40 CEST 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Autobuild-User(master): Jelmer Vernooij &lt;jelmer@samba.org&gt;
Autobuild-Date(master): Tue Sep 25 06:38:40 CEST 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>replace: Support setproctitle().</title>
<updated>2012-09-24T21:06:07+00:00</updated>
<author>
<name>Jelmer Vernooij</name>
<email>jelmer@samba.org</email>
</author>
<published>2012-09-24T07:20:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=fd8d4ec34785e71de3f8458222d196d454d0e723'/>
<id>fd8d4ec34785e71de3f8458222d196d454d0e723</id>
<content type='text'>
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
</pre>
</div>
</content>
</entry>
</feed>
