Upload Tizen:Base source
[external/bash.git] / packaging / deb-bash-config.patch
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 --- bash/config-top.h.orig      2008-08-17 16:52:25.000000000 +0000
19 +++ bash/config-top.h   2008-11-29 17:35:03.000000000 +0000
20 @@ -54,14 +54,14 @@
21  /* The default value of the PATH variable. */
22  #ifndef DEFAULT_PATH_VALUE
23  #define DEFAULT_PATH_VALUE \
24 -  "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
25 +  "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
26  #endif
27  
28  /* The value for PATH when invoking `command -p'.  This is only used when
29     the Posix.2 confstr () function, or CS_PATH define are not present. */
30  #ifndef STANDARD_UTILS_PATH
31  #define STANDARD_UTILS_PATH \
32 -  "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
33 +  "/bin:/usr/bin:/sbin:/usr/sbin"
34  #endif
35  
36  /* Default primary and secondary prompt strings. */
37 @@ -75,20 +75,20 @@
38  #define KSH_COMPATIBLE_SELECT
39  
40  /* System-wide .bashrc file for interactive shells. */
41 -/* #define SYS_BASHRC "/etc/bash.bashrc" */
42 +#define SYS_BASHRC "/etc/bash.bashrc"
43  
44  /* System-wide .bash_logout for login shells. */
45 -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
46 +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
47  
48  /* Define this to make non-interactive shells begun with argv[0][0] == '-'
49     run the startup files when not in posix mode. */
50 -/* #define NON_INTERACTIVE_LOGIN_SHELLS */
51 +#define NON_INTERACTIVE_LOGIN_SHELLS
52  
53  /* Define this if you want bash to try to check whether it's being run by
54     sshd and source the .bashrc if so (like the rshd behavior).  This checks
55     for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
56     which can be fooled under certain not-uncommon circumstances. */
57 -/* #define SSH_SOURCE_BASHRC */
58 +#define SSH_SOURCE_BASHRC
59  
60  /* Define if you want the case-capitalizing operators (~[~]) and the
61     `capcase' variable attribute (declare -c). */
62 --- bash/config-bot.h.orig      2008-08-17 16:52:02.000000000 +0000
63 +++ bash/config-bot.h   2008-11-29 17:32:42.000000000 +0000
64 @@ -192,4 +192,4 @@
65  /******************************************************************/
66  
67  /* If you don't want bash to provide a default mail file to check. */
68 -/* #undef DEFAULT_MAIL_DIRECTORY */
69 +#undef DEFAULT_MAIL_DIRECTORY