forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3a2d636
committed
Fix potentially-unportable code in contrib/adminpack.
Spelling access(2)'s second argument as "2" is just horrid.POSIX makes no promises as to the numeric values of W_OK and relatedmacros. Even if it accidentally works as intended on every supportedplatform, it's still unreadable and inconsistent with adjacent code.In passing, don't spell "NULL" as "0" either. Yes, that's legal C;no, it's not project style.Back-patch, just in case the unportability is real and not theoretical.(Most likely, even if a platform had different bit assignments foraccess()'s modes, there'd not be an observable behavior differencehere; but I'm being paranoid today.)1 parentf8a187b commit3a2d636
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
301 |
| - | |
| 301 | + | |
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
| 323 | + | |
324 | 324 |
| |
325 | 325 |
| |
326 | 326 |
| |
|
0 commit comments
Comments
(0)