- Notifications
You must be signed in to change notification settings - Fork5
Commit0a74819
committed
Allow DOS-style line endings in ~/.pgpass files.
On Windows, libc will mask \r\n line endings for us, since we read thepassword file in text mode. But that doesn't happen on Unix. Peoplewho share password files across both systems might have \r\n line endingsin a file they use on Unix, so as a convenience, ignore trailing \r.Per gripe from Josh Berkus.In passing, put the existing check for empty line somewhere where it'sactually useful, ie after stripping the newline not before.Vik Fearing, adjusted a bit by meDiscussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com>1 parentffaa44c commit0a74819
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6026 | 6026 |
| |
6027 | 6027 |
| |
6028 | 6028 |
| |
6029 |
| - | |
6030 |
| - | |
6031 | 6029 |
| |
6032 | 6030 |
| |
6033 |
| - | |
6034 |
| - | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
| 6037 | + | |
| 6038 | + | |
| 6039 | + | |
| 6040 | + | |
6035 | 6041 |
| |
6036 | 6042 |
| |
6037 | 6043 |
| |
6038 | 6044 |
| |
6039 | 6045 |
| |
6040 | 6046 |
| |
| 6047 | + | |
| 6048 | + | |
6041 | 6049 |
| |
6042 | 6050 |
| |
6043 | 6051 |
| |
|
0 commit comments
Comments
(0)