[sane-devel] [PATCH v2] saned: reorganize flags, remove run_mode SANED_RUN_DEBUG

2017-09-18 Thread luizluca
From: Luiz Angelo Daros de Luca Flags like -a, -d and -s have many overlap effects. This patch restricts the effect of flags to a simple action. New -u (user) flag replaces -a optional argument for running saned as a different user. The code that retrieve the user info and drop privileges migra

[sane-devel] [PATCH 3/3] saned: reorganize flags, remove run_mode SANED_RUN_DEBUG

2017-07-22 Thread luizluca
From: Luiz Angelo Daros de Luca Flags like -a, -d and -s have many overlap effects. This patch restricts the effect of flags to a simple action. New -u (user) flag replaces -a optional argument for running saned as a different user. The code that retrieve the user info and drop privileges migra

[sane-devel] [PATCH 2/3] saned: update man for option -b

2017-07-22 Thread luizluca
From: Luiz Angelo Daros de Luca --- doc/saned.man | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/saned.man b/doc/saned.man index 34764f1f..8542d254 100644 --- a/doc/saned.man +++ b/doc/saned.man @@ -6,6 +6,9 @@ saned \- SANE network daemon .B saned .B [ \-a .I [ username ] +

[sane-devel] [PATCH 1/3] saned: fix --debug help message (output is stderr)

2017-07-22 Thread luizluca
From: Luiz Angelo Daros de Luca Man page was correct. Signed-off-by: Luiz Angelo Daros de Luca --- frontend/saned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/saned.c b/frontend/saned.c index 2fc33216..6b97e914 100644 --- a/frontend/saned.c +++ b/frontend/sane