[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ID find-file bug in id-utils-3.2
From: |
Joe Korty |
Subject: |
ID find-file bug in id-utils-3.2 |
Date: |
Tue, 6 Nov 2001 09:56:40 -0500 (EST) |
Hi,
id-utils-3.2 cannot find the ID database file unless it is in the
current working directory or in its parent. It is no longer able to
find the file if it is in the grandparent or more ancient directory.
That is, it can find 'ID' or '../ID', but not '../../ID',
'../../../ID', etc.
The below patch fixes the problem.
--- id-utils-3.2-base/libidu/idfile.c Tue Jul 9 00:19:08 1996
+++ id-utils-3.2/libidu/idfile.c Tue Nov 6 09:13:33 2001
@@ -85,7 +85,7 @@
if (stat (file_name_buffer, &statb) != 0)
return NULL;
}
- while (!((statb.st_ino == rootb.st_ino) ||
+ while (!((statb.st_ino == rootb.st_ino) &&
(statb.st_dev == rootb.st_dev)));
return NULL;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ID find-file bug in id-utils-3.2,
Joe Korty <=