chiark / gitweb /
Disable all exported shell functions
[bash.git] / debian / patches / deb-bash-config.diff
1 # DP: Changed compile time configuration options:
2 # DP: 
3 # DP: - Set the default path to comply with Debian policy
4 # DP: 
5 # DP: - Enable System-wide .bashrc file for interactive shells.
6 # DP: 
7 # DP: - Enable System-wide .bash.logout  file for interactive shells.
8 # DP: 
9 # DP: - make non-interactive shells begun with argv[0][0] == '-'
10 # DP:   run the startup files when not in posix mode.
11 # DP: 
12 # DP: - try to check whether bash is being run by sshd and source
13 # DP:   the .bashrc if so (like the rshd behavior).
14 # DP: 
15 # DP: - don't define a default DEFAULT_MAIL_DIRECTORY, because it
16 # DP:   can cause a timeout on NFS mounts.
17
18 --- a/bash/config-bot.h
19 +++ b/bash/config-bot.h
20 @@ -196,4 +196,4 @@
21  /******************************************************************/
22  
23  /* If you don't want bash to provide a default mail file to check. */
24 -/* #undef DEFAULT_MAIL_DIRECTORY */
25 +#undef DEFAULT_MAIL_DIRECTORY
26 --- a/bash/config-top.h
27 +++ b/bash/config-top.h
28 @@ -54,14 +54,14 @@
29  /* The default value of the PATH variable. */
30  #ifndef DEFAULT_PATH_VALUE
31  #define DEFAULT_PATH_VALUE \
32 -  "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
33 +  "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
34  #endif
35  
36  /* The value for PATH when invoking `command -p'.  This is only used when
37     the Posix.2 confstr () function, or CS_PATH define are not present. */
38  #ifndef STANDARD_UTILS_PATH
39  #define STANDARD_UTILS_PATH \
40 -  "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
41 +  "/bin:/usr/bin:/sbin:/usr/sbin"
42  #endif
43  
44  /* Default primary and secondary prompt strings. */
45 @@ -75,20 +75,20 @@
46  #define KSH_COMPATIBLE_SELECT
47  
48  /* System-wide .bashrc file for interactive shells. */
49 -/* #define SYS_BASHRC "/etc/bash.bashrc" */
50 +#define SYS_BASHRC "/etc/bash.bashrc"
51  
52  /* System-wide .bash_logout for login shells. */
53 -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
54 +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
55  
56  /* Define this to make non-interactive shells begun with argv[0][0] == '-'
57     run the startup files when not in posix mode. */
58 -/* #define NON_INTERACTIVE_LOGIN_SHELLS */
59 +#define NON_INTERACTIVE_LOGIN_SHELLS
60  
61  /* Define this if you want bash to try to check whether it's being run by
62     sshd and source the .bashrc if so (like the rshd behavior).  This checks
63     for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
64     which can be fooled under certain not-uncommon circumstances. */
65 -/* #define SSH_SOURCE_BASHRC */
66 +#define SSH_SOURCE_BASHRC
67  
68  /* Define if you want the case-capitalizing operators (~[~]) and the
69     `capcase' variable attribute (declare -c). */