Code

patches/: Cleaned up patches.
[pkg-mlmmj.git] / debian / patches / 05_fix_displayed_full_paths.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 05_fix_displayed_full_paths.dpatch by Søren Boll Overgaard <boll@andariel>
3 ##
4 ## DP: Adapt the path name of binaries in an error message to the paths as
5 ## DP: used in the Debian package.
7 @DPATCH@
9 diff a/include/mlmmj.h b/include/mlmmj.h
10 --- a/include/mlmmj.h
11 +++ b/include/mlmmj.h
12 @@ -70,7 +70,7 @@
13  #define CHECKFULLPATH(name) if(strchr(name, '/') == NULL) { \
14                         fprintf(stderr, "All mlmmj binaries have to " \
15                                         "be invoked with full path,\n" \
16 -                                       "e.g. /usr/local/bin/%s\n", name); \
17 +                                       "e.g. /usr/bin/%s\n", name); \
18                         exit(EXIT_FAILURE); \
19                         };
20