87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595 |
|
17-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
Add missing new lines to debug messages
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
83bf46f4066e3d5e838a32357c201de9bd6ecdfd |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Update DEBUG* invocations to use new levels
Use a script to update DEBUG* macro invocations, which use literal
numbers for levels, to use bitmask macros instead:
grep -rl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e 'use strict;
use File::Slurp;
my @map=qw"
SSSDBG_FATAL_FAILURE
SSSDBG_CRIT_FAILURE
SSSDBG_OP_FAILURE
SSSDBG_MINOR_FAILURE
SSSDBG_CONF_SETTINGS
SSSDBG_FUNC_DATA
SSSDBG_TRACE_FUNC
SSSDBG_TRACE_LIBS
SSSDBG_TRACE_INTERNAL
SSSDBG_TRACE_ALL
";
my $text=read_file(\*STDIN);
my $repl;
$text=~s/
^
(
.*
\b
(DEBUG|DEBUG_PAM_DATA|DEBUG_GR_MEM)
\s*
\(\s*
)(
[0-9]
)(
\s*,
)
(
\s*
)
(
.*
)
$
/
$repl = $1.$map[$3].$4.$5.$6,
length($repl) <= 80
? $repl
: $1.$map[$3].$4."\n".(" " x length($1)).$6
/xmge;
print $text;
' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
Use a script to update DEBUG macro invocations to use it as a variadic
macro, supplying format string and its arguments directly, instead of
wrapping them in parens.
This script was used to update the code:
grep -rwl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e \
'use strict;
use File::Slurp;
my $text=read_file(\*STDIN);
$text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs;
print $text;' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
f7257ab0bcea6c41fab5a4677787f3075ecdcb64 |
|
04-Nov-2013 |
Pavel Reichl <pavel.reichl@redhat.com> |
Include ext headers with #include <foo.h> - cont
Changing style of including header files from outside of sssd tree - from "header.h" to <header.h> |
e33d1454676021db27fd1f1d52bb3d79c7171d01 |
|
25-Sep-2013 |
Simo Sorce <simo@redhat.com> |
util: Allways fall back to old find_uid method
systemd-login still fails with su/sudo login shells, so always fall back
for now.
Resolves:
https://fedorahosted.org/sssd/ticket/2094 |
5cd4414fce1e0eb4133dfc6fc828bf25c8a959f9 |
|
24-Sep-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Include header file in implementation module.
Declarations of public functions was in header files,
but header files was not included in implementation file. |
b49a7d90708e816120ff88ce5a88fa62b35ff795 |
|
16-Sep-2013 |
Simo Sorce <simo@redhat.com> |
util: Use systemd-login to check user sessions
Use systemd-lgin in preference to check if the user is logged in or not.
Fall back to the old method if no systemd-login support is available at compile
time or if it returns a fatal error, and can't determine the status of the user
on its own.
This will allow to consider a user really active (in order to reuse or refresh
crdentials) only if it really is logged into the system, and not just if one
of the user's processes is stuck around.
Resolves:
https://fedorahosted.org/sssd/ticket/2084 |
9d7d4458d94d0aac0a7edf999368eb18f89cb76a |
|
20-Apr-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Convert read and write operations to sss_atomic_read
https://fedorahosted.org/sssd/ticket/1209 |
55fcd37c086f699db1aeac54a3df046b60755ff6 |
|
29-Feb-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
Handle cases where UID is -1
Also removes an unnecessary range check (since it's already handled
by strtoint32()
https://fedorahosted.org/sssd/ticket/1216 |
43abd12a37ea1c410ffb923b9cadfbf0f6ea6e6a |
|
14-Feb-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
Ensure NULL-termination in get_uid_from_pid()
Coverity #12399 |
21386a358f0850b660139fe6db2bdd2e14c8a4ef |
|
07-Nov-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Fixed possible resource leak in get_uid_from_pid()
https://fedorahosted.org/sssd/ticket/1069 |
580374daba2ab2c6075a7d0de9512abff133e2e9 |
|
26-Oct-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Always use uint32_t for UID/GID numbers |
27c67307976a60088ca301e07404bdb52740c3af |
|
18-Oct-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Use unsigned long for conversion to id_t
We used strtol() on a number of places to convert into uid_t or gid_t
from a string representation such as LDAP attribute, but on some
platforms, unsigned long might be necessary to store big id_t values.
This patch converts to using strtoul() instead. |
0d32e0dbb84de09e819911e8a5a532fbb7c1604e |
|
14-Jun-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Check closedir call in find_uid
Fixes: #503 |
946aba311fd280fbd673944c0181063d2600c878 |
|
14-Jun-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
get_uid_from_pid should use fstat rather than lstat
Fixes: #541 |
9eab847bc1a30ebf4ab27f739d6972402262d045 |
|
10-Jun-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix misuse of errno in find_uid.c |
06247775aa9c49ffce72827921eb45e2d04c6aa1 |
|
10-Jun-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Properly handle read() and write() throughout the SSSD
We need to guarantee at all times that reads and writes complete
successfully. This means that they must be checked for returning
EINTR and EAGAIN, and all writes must be wrapped in a loop to
ensure that they do not truncate their output. |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |