2 ## 07_log_to_file_by_default.dpatch by <weasel@debian.org>
4 ## All lines beginning with `## DP:' are a description of the patch.
8 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12 [ -f debian
/patches
/00patch-opts
] && . debian
/patches
/00patch-opts
13 patch_opts
="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16 -patch) patch -p1 ${patch_opts} < $0;;
17 -unpatch) patch -R -p1 ${patch_opts} < $0;;
19 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
26 diff -urNad tor-0.1
.1.5/src
/or
/config.c
/tmp
/dpep.YwfNhI
/tor-0.1
.1.5/src
/or
/config.c
27 --- tor-0.1
.1.5/src
/or
/config.c
28 +++ /tmp
/dpep.YwfNhI
/tor-0.1
.1.5/src
/or
/config.c
31 /* Special
case if no options are given.
*/
33 - config_line_append
(&options-
>Logs
, "Log", "notice stdout");
34 + config_line_append
(&options-
>Logs
, "Log", "notice file /var/log/tor/log");
37 if (options_init_logs
(options
, 1)<0) /* Validate the log
(s
) */