Add OpenAFS-debug.*.plist to .gitignore
[openafs.git] / src / packaging / Debian / patches / fstrace-paths
1 fstrace uses the NLS functions to do message translation and needs a
2 message catalog installed.  The default paths are rather broken.  Patch
3 the source to look for it in /usr/share/openafs instead.  Not suitable
4 upstream with the hard-coded paths, but something more sophisticated
5 would be appropriate.
6
7 --- openafs.orig/src/venus/fstrace.c
8 +++ openafs/src/venus/fstrace.c
9 @@ -1471,7 +1471,7 @@
10   */
11  
12  #ifndef RPC_NLS_FORMAT
13 -#define RPC_NLS_FORMAT "%s.cat"
14 +#define RPC_NLS_FORMAT "/usr/share/openafs/%s.cat"
15  #endif
16  
17  dce1_error_inq_text(status_to_convert, error_text, status)
18 @@ -1488,7 +1488,8 @@
19      char component_name[4];
20      char *facility_name;
21      char filename_prefix[7];
22 -    char nls_filename[11];
23 +    /* strlen("/usr/share/openafs/") + 6 + strlen(".cat") + 1 */
24 +    char nls_filename[19 + 6 + 4 + 1];
25      char alt_filename[80];
26      char *message;
27  #if defined(AFS_64BITPOINTER_ENV)