forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit65f2e86
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 parent131f6a9 commit65f2e86
1 file changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
0 commit comments
Comments
(0)