forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaf209b7
committed
Fix pg_truncate() on Windows.
Commit57faaf3 added pg_truncate(const char *path, off_t length), but"length" was ignored under WIN32 and the file was unconditionallytruncated to 0.There was no live bug, since the only caller passes 0.Fix, and back-patch to 14 where the function arrived.Author: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/20230106031652.GR3109%40telsasoft.com1 parent8cd190e commitaf209b7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
0 commit comments
Comments
(0)