aboutsummaryrefslogtreecommitdiffstats
path: root/vms/gawkmisc.vms
diff options
context:
space:
mode:
Diffstat (limited to 'vms/gawkmisc.vms')
-rw-r--r--vms/gawkmisc.vms5
1 files changed, 4 insertions, 1 deletions
diff --git a/vms/gawkmisc.vms b/vms/gawkmisc.vms
index 6f8fdaef..316e613d 100644
--- a/vms/gawkmisc.vms
+++ b/vms/gawkmisc.vms
@@ -175,7 +175,10 @@ int fd;
int
files_are_same(struct stat *f1, struct stat *f2)
{
- return (strcmp(f1->st_dev, f2->st_dev) == 0
+ struct stat st;
+
+ return (stat(path, & st) == 0
+ && strcmp(f1->st_dev, f2->st_dev) == 0
&& f1->st_ino[0] == f2->st_ino[0]
&& f1->st_ino[1] == f2->st_ino[1]
&& f1->st_ino[2] == f2->st_ino[2]);