<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd.git/src/tools, branch sudo1-13</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/'/>
<entry>
<title>UTILS: Fixing duplication of pid file declaration</title>
<updated>2017-01-09T16:08:21+00:00</updated>
<author>
<name>Petr Cech</name>
<email>pcech@redhat.com</email>
</author>
<published>2016-08-05T12:39:39+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=1d897ffa2f6c675a98e27b4f8f336dcda6ea8c80'/>
<id>1d897ffa2f6c675a98e27b4f8f336dcda6ea8c80</id>
<content type='text'>
Resolves:
https://fedorahosted.org/sssd/ticket/2978

Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
(cherry picked from commit 08cd034c8584b6f058cf565ce66f7f9f7120622f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves:
https://fedorahosted.org/sssd/ticket/2978

Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
(cherry picked from commit 08cd034c8584b6f058cf565ce66f7f9f7120622f)
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Fix warning Wsign-compare</title>
<updated>2016-10-17T14:40:58+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2015-11-19T13:07:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=0257239c8504435961dc428f719d4d655ba4688d'/>
<id>0257239c8504435961dc428f719d4d655ba4688d</id>
<content type='text'>
src/tools/tools_util.c: In function ‘parse_groups’:
src/tools/tools_util.c:116:19: error: comparison between
    signed and unsigned integer expressions [-Werror=sign-compare]
     for (i = 0; i &lt; tokens; i++) {
                   ^

Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
(cherry picked from commit d3f14ed93ef61268d0a68898ed9c44b4f773081c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
src/tools/tools_util.c: In function ‘parse_groups’:
src/tools/tools_util.c:116:19: error: comparison between
    signed and unsigned integer expressions [-Werror=sign-compare]
     for (i = 0; i &lt; tokens; i++) {
                   ^

Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
(cherry picked from commit d3f14ed93ef61268d0a68898ed9c44b4f773081c)
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Fix warning maybe-uninitialized</title>
<updated>2016-05-19T14:07:29+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-05-11T13:03:42+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=53b51e56e0ca6afdb1b8accdda51ec7aa3fca0db'/>
<id>53b51e56e0ca6afdb1b8accdda51ec7aa3fca0db</id>
<content type='text'>
src/tools/files.c: In function ‘copy_file_contents’:
src/tools/files.c:413:12: error: ‘ret’ may be used uninitialized in this
     function [-Werror=maybe-uninitialized]
     return ret;
            ^~~

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
(cherry picked from commit c2e3176eaff7c219d63f328570a79f6e5b6f4aec)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
src/tools/files.c: In function ‘copy_file_contents’:
src/tools/files.c:413:12: error: ‘ret’ may be used uninitialized in this
     function [-Werror=maybe-uninitialized]
     return ret;
            ^~~

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
(cherry picked from commit c2e3176eaff7c219d63f328570a79f6e5b6f4aec)
</pre>
</div>
</content>
</entry>
<entry>
<title>sss_override: only add domain if name is not fully qualified</title>
<updated>2016-04-13T11:49:17+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2016-04-08T16:43:57+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=baadb2467521b4da61e9c205d9549c750fad3eae'/>
<id>baadb2467521b4da61e9c205d9549c750fad3eae</id>
<content type='text'>
Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit e45096aead1d2e2b8f8b2b386b420c5f62ad07d3)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit e45096aead1d2e2b8f8b2b386b420c5f62ad07d3)
</pre>
</div>
</content>
</entry>
<entry>
<title>tools: read additional data of the master domain</title>
<updated>2016-04-13T11:49:10+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2016-04-08T16:40:48+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=a6c3abd6b9b23477ad6008852371937d16679778'/>
<id>a6c3abd6b9b23477ad6008852371937d16679778</id>
<content type='text'>
Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit 3a8b5ccf7c27b72054e1d8b3ab355cb1e28efda9)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit 3a8b5ccf7c27b72054e1d8b3ab355cb1e28efda9)
</pre>
</div>
</content>
</entry>
<entry>
<title>sss_override: do not generate DN, search object</title>
<updated>2016-04-13T11:49:02+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2016-04-08T12:43:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=f3f312492a925e2efe1457a7cb8ab5b459eaef68'/>
<id>f3f312492a925e2efe1457a7cb8ab5b459eaef68</id>
<content type='text'>
DNs of existing objects can not be generate reliable because the use of
fully qualified names and upper and lower cases in names has to be
considered. The most reliable way to get the DN is to search the object
and take the DN from the result.

Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit e6e2d1575ac7feb3494649f94ef51ef13cbdce48)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DNs of existing objects can not be generate reliable because the use of
fully qualified names and upper and lower cases in names has to be
considered. The most reliable way to get the DN is to search the object
and take the DN from the result.

Resolves:
https://fedorahosted.org/sssd/ticket/2989

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit e6e2d1575ac7feb3494649f94ef51ef13cbdce48)
</pre>
</div>
</content>
</entry>
<entry>
<title>util: Continue if setlocale fails</title>
<updated>2016-03-03T16:43:16+00:00</updated>
<author>
<name>Michal Židek</name>
<email>mzidek@redhat.com</email>
</author>
<published>2015-10-19T13:38:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=4815471669a25566f6772c228c104a206ffa37f7'/>
<id>4815471669a25566f6772c228c104a206ffa37f7</id>
<content type='text'>
setlocale needs some environment variables
to be set in order to work. These variables
are not present in some special cases. We
should not fail completely in these cases
but continue with the compatible C locale.

Resolves:
https://fedorahosted.org/sssd/ticket/2785

Reviewed-by: Michal Židek &lt;mzidek@redhat.com&gt;
(cherry picked from commit 43e06ff39584570817949dc5de118d2b7ca854c1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
setlocale needs some environment variables
to be set in order to work. These variables
are not present in some special cases. We
should not fail completely in these cases
but continue with the compatible C locale.

Resolves:
https://fedorahosted.org/sssd/ticket/2785

Reviewed-by: Michal Židek &lt;mzidek@redhat.com&gt;
(cherry picked from commit 43e06ff39584570817949dc5de118d2b7ca854c1)
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Add comments on functions in colondb</title>
<updated>2016-02-24T12:55:02+00:00</updated>
<author>
<name>Petr Cech</name>
<email>pcech@redhat.com</email>
</author>
<published>2015-11-24T15:34:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=fbf7d5683287fa2c7b450b8f5b0df63673f25d83'/>
<id>fbf7d5683287fa2c7b450b8f5b0df63673f25d83</id>
<content type='text'>
The colondb API provides three function:
* sss_colondb_open()
* sss_colondb_write_field()
* sss_colondb_read_field()

It is not obvious that sss_colondb_open() add destructor on talloc
context which close the colondb during free context. And there is
expectation that SSS_COLONDB_SENTINEL is type of last item in line.

So this patch adds simple lightening comments in doxygen style.

Resolves:
https://fedorahosted.org/sssd/ticket/2764

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit cf1109e30320a994187edeb438ac7cdc36f0dd2b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The colondb API provides three function:
* sss_colondb_open()
* sss_colondb_write_field()
* sss_colondb_read_field()

It is not obvious that sss_colondb_open() add destructor on talloc
context which close the colondb during free context. And there is
expectation that SSS_COLONDB_SENTINEL is type of last item in line.

So this patch adds simple lightening comments in doxygen style.

Resolves:
https://fedorahosted.org/sssd/ticket/2764

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit cf1109e30320a994187edeb438ac7cdc36f0dd2b)
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Fix memory leak after getline() failed</title>
<updated>2016-02-24T12:54:54+00:00</updated>
<author>
<name>Petr Cech</name>
<email>pcech@redhat.com</email>
</author>
<published>2016-02-18T11:33:53+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=34ba0c53d0d966c64ea11a6269cdd0ad985f4068'/>
<id>34ba0c53d0d966c64ea11a6269cdd0ad985f4068</id>
<content type='text'>
This patch fixes buffer freeing in case if getline() failed
in function sss_colondb_readline().

ssize_t getline(char **lineptr, size_t *n, FILE *stream);
If *lineptr is set to NULL and *n is set 0 before the call, then
getline() will allocate a buffer for storing the line.  This buffer
should be freed by the user program even if getline() failed.
    man 3 getline

This patch fix buffer freeing in case if getline() failed.

Resolves:
https://fedorahosted.org/sssd/ticket/2764

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit 2dd75ea79a57615808754c0ce550786edbc17d69)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes buffer freeing in case if getline() failed
in function sss_colondb_readline().

ssize_t getline(char **lineptr, size_t *n, FILE *stream);
If *lineptr is set to NULL and *n is set 0 before the call, then
getline() will allocate a buffer for storing the line.  This buffer
should be freed by the user program even if getline() failed.
    man 3 getline

This patch fix buffer freeing in case if getline() failed.

Resolves:
https://fedorahosted.org/sssd/ticket/2764

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
(cherry picked from commit 2dd75ea79a57615808754c0ce550786edbc17d69)
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Fix minor memory leak in sss_colondb_writeline</title>
<updated>2016-02-24T12:54:48+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-02-19T15:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pbrezina/public_git/sssd.git/commit/?id=d75ac50d0c065974a7ec2330f60657ae85e487c0'/>
<id>d75ac50d0c065974a7ec2330f60657ae85e487c0</id>
<content type='text'>
The variable line was initialized to NULL.
The we created temporary context tmp_ctx.
We use talloc_asprintf_append to append string to line which is initially
NULL and therefore new context which was not connected to tmp_ctx.
    man 3 talloc_string -&gt; talloc_asprintf_append

Reviewed-by: Petr Cech &lt;pcech@redhat.com&gt;
(cherry picked from commit 6977d7c84145ac69195be58b3330861b9b8a3b72)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The variable line was initialized to NULL.
The we created temporary context tmp_ctx.
We use talloc_asprintf_append to append string to line which is initially
NULL and therefore new context which was not connected to tmp_ctx.
    man 3 talloc_string -&gt; talloc_asprintf_append

Reviewed-by: Petr Cech &lt;pcech@redhat.com&gt;
(cherry picked from commit 6977d7c84145ac69195be58b3330861b9b8a3b72)
</pre>
</div>
</content>
</entry>
</feed>
