summaryrefslogtreecommitdiffstats
path: root/src/util/backup_file.c
Commit message (Collapse)AuthorAgeFilesLines
* Make DEBUG macro invocations variadicNikolai Kondrashov2014-02-121-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix formating of variables with type: ssize_tLukas Slebodnik2013-09-111-1/+1
|
* Convert read and write operations to sss_atomic_readJakub Hrozek2012-04-201-23/+21
| | | | https://fedorahosted.org/sssd/ticket/1209
* Fix potential resource leak in backup_file.cStephen Gallagher2011-12-091-1/+1
|
* Dead assignments cleanup in various places in SSSDJan Zeleny2010-09-081-1/+1
| | | | | | Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590
* Properly handle read() and write() throughout the SSSDStephen Gallagher2010-06-101-2/+2
| | | | | | | 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.
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+122
Also update BUILD.txt