diff options
| author | Daniel Luz | 2013-11-30 14:09:05 -0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-30 08:47:31 -0800 |
| commit | 5bfaa0553c8318c268cab1a169f0b6d2487e7fee (patch) | |
| tree | e30cc6b1073cb64ff54804ece21ba37a8934f6d2 /Library/Formula | |
| parent | 78837184b1c690acbda73e43f2960abd443a7f0c (diff) | |
| download | homebrew-5bfaa0553c8318c268cab1a169f0b6d2487e7fee.tar.bz2 | |
bash: add missing braces to patch
The patch in 5120c11e broke '\W' outside of the home directory, due to
an unbracketed else block.
Closes #24806.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/bash.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/bash.rb b/Library/Formula/bash.rb index 34cffee04..8d3b29236 100644 --- a/Library/Formula/bash.rb +++ b/Library/Formula/bash.rb @@ -45,11 +45,14 @@ end __END__ diff --git a/parse.y b/parse.y -index b5c94e7..0cda47c 100644 +index b5c94e7..085e5e4 100644 --- a/parse.y +++ b/parse.y -@@ -5262,7 +5262,12 @@ decode_prompt_string (string) +@@ -5260,9 +5260,16 @@ decode_prompt_string (string) + #undef ROOT_PATH + #undef DOUBLE_SLASH_ROOT else ++ { /* polite_directory_format is guaranteed to return a string no longer than PATH_MAX - 1 characters. */ - strcpy (t_string, polite_directory_format (t_string)); @@ -59,6 +62,7 @@ index b5c94e7..0cda47c 100644 + temp = polite_directory_format (t_string); + if (temp != t_string) + strcpy (t_string, temp); ++ } temp = trim_pathname (t_string, PATH_MAX - 1); /* If we're going to be expanding the prompt string later, |
