3 if [ $# -eq 3 -a "$2" = '-d' ]; then
5 elif [ $# -ne 1 ]; then
6 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11 -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
13 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18 # DP: Changed compile time configuration options:
20 # DP: - Set the default path to comply with Debian policy
22 # DP: - Enable System-wide .bashrc file for interactive shells.
24 # DP: - Enable System-wide .bash.logout file for interactive shells.
26 # DP: - make non-interactive shells begun with argv[0][0] == '-'
27 # DP: run the startup files when not in posix mode.
29 # DP: - try to check whether bash is being run by sshd and source
30 # DP: the .bashrc if so (like the rshd behavior).
32 # DP: - don't define a default DEFAULT_MAIL_DIRECTORY, because it
33 # DP: can cause a timeout on NFS mounts.
35 --- bash/config-top.h.orig 2008-08-17 16:52:25.000000000 +0000
36 +++ bash/config-top.h 2008-11-29 17:35:03.000000000 +0000
38 /* The default value of the PATH variable. */
39 #ifndef DEFAULT_PATH_VALUE
40 #define DEFAULT_PATH_VALUE \
41 - "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
42 + "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
45 /* The value for PATH when invoking `command -p'. This is only used when
46 the Posix.2 confstr () function, or CS_PATH define are not present. */
47 #ifndef STANDARD_UTILS_PATH
48 #define STANDARD_UTILS_PATH \
49 - "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
50 + "/bin:/usr/bin:/sbin:/usr/sbin"
53 /* Default primary and secondary prompt strings. */
55 #define KSH_COMPATIBLE_SELECT
57 /* System-wide .bashrc file for interactive shells. */
58 -/* #define SYS_BASHRC "/etc/bash.bashrc" */
59 +#define SYS_BASHRC "/etc/bash.bashrc"
61 /* System-wide .bash_logout for login shells. */
62 -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
63 +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
65 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
66 run the startup files when not in posix mode. */
67 -/* #define NON_INTERACTIVE_LOGIN_SHELLS */
68 +#define NON_INTERACTIVE_LOGIN_SHELLS
70 /* Define this if you want bash to try to check whether it's being run by
71 sshd and source the .bashrc if so (like the rshd behavior). This checks
72 for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
73 which can be fooled under certain not-uncommon circumstances. */
74 -/* #define SSH_SOURCE_BASHRC */
75 +#define SSH_SOURCE_BASHRC
77 /* Define if you want the case-capitalizing operators (~[~]) and the
78 `capcase' variable attribute (declare -c). */
79 --- bash/config-bot.h.orig 2008-08-17 16:52:02.000000000 +0000
80 +++ bash/config-bot.h 2008-11-29 17:32:42.000000000 +0000
82 /******************************************************************/
84 /* If you don't want bash to provide a default mail file to check. */
85 -/* #undef DEFAULT_MAIL_DIRECTORY */
86 +#undef DEFAULT_MAIL_DIRECTORY