File: 020_fix-config.patch

package info (click to toggle)
scalpel 1.60%2Bgit20240110.6960eb2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 560 kB
  • sloc: ansic: 4,990; makefile: 90
file content (31 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: make /etc/scalpel the default path to config file.
Author: Danny van der Meeren <danny@illogic.nl>
Last-Update: 2006-12-06
Index: scalpel-1.60/scalpel.c
===================================================================
--- scalpel-1.60.orig/scalpel.c
+++ scalpel-1.60/scalpel.c
@@ -500,8 +500,8 @@ void convertFileNames(struct scalpelStat
   realpath(state->outputdirectory,fn);
   strncpy(state->outputdirectory,fn,MAX_STRING_LENGTH);
 
-  realpath(state->conffile,fn);
-  strncpy(state->conffile,fn,MAX_STRING_LENGTH);
+//  realpath(state->conffile,fn);
+//  strncpy(state->conffile,fn,MAX_STRING_LENGTH);
 }
 
 
Index: scalpel-1.60/scalpel.h
===================================================================
--- scalpel-1.60.orig/scalpel.h
+++ scalpel-1.60/scalpel.h
@@ -189,7 +189,7 @@ extern int  errno;
 #define SCALPEL_NOEXTENSION '\xFF'
 
 #define SCALPEL_DEFAULT_WILDCARD       '?'
-#define SCALPEL_DEFAULT_CONFIG_FILE    "scalpel.conf"
+#define SCALPEL_DEFAULT_CONFIG_FILE    "/etc/scalpel/scalpel.conf"
 
 #define SCALPEL_DEFAULT_OUTPUT_DIR     "scalpel-output"