forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc0f279c
committed
Don't include file type bits in tar archive's mode field.
The "file mode" bits in the tar file header is not supposed to include thefile type bits, e.g. S_IFREG or S_IFDIR. The file type is stored in aseparate field. This isn't a problem in practice, all tar programs ignorethe extra bits, but let's be tidy.This came up in a discussion around bug #11949, reported by Hendrik Grewe,although this doesn't fix the issue with tar --append. That turned out to bea bug in GNU tar. Schilly's tartest program revealed this defect in the tarcreated by pg_basebackup.This problem goes as far as we we've had pg_basebackup, but since thishasn't caused any problems in practice, let's be conservative and fix inmaster only.1 parentb27b6e7 commitc0f279c
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
| 80 | + | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
|
0 commit comments
Comments
(0)