[kaffe] CVS kaffe (doogie): s/stat/lstat/, to fix symlink deletion.

Kaffe CVS cvs-commits at kaffe.org
Sun Dec 19 14:52:20 PST 2004


PatchSet 5667 
Date: 2004/12/19 22:46:26
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
s/stat/lstat/, to fix symlink deletion.

Members: 
	ChangeLog:1.3212->1.3213 
	kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.14->1.15 
	kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.22->1.23 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3212 kaffe/ChangeLog:1.3213
--- kaffe/ChangeLog:1.3212	Sun Dec 19 22:13:05 2004
+++ kaffe/ChangeLog	Sun Dec 19 22:46:26 2004
@@ -1,5 +1,11 @@
 2004-12-19  Adam Heath  <doogie at brainfood.com>
 
+	* kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
+	  kaffe/kaffevm/systems/unix-pthreads/syscalls.c:
+	  s/stat/lstat/, to fix symlink deletion.
+
+2004-12-19  Adam Heath  <doogie at brainfood.com>
+
 	* include/errors.h, kaffe/kaffevm/external.c, kaffe/kaffevm/findInJar.c,
 	  kaffe/kaffevm/gcFuncs.c, kaffe/kaffevm/hashtab.c,
 	  kaffe/kaffevm/inflate.c, kaffe/kaffevm/itypes.c, kaffe/kaffevm/jar.c,
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.14 kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.15
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.14	Sun Apr 18 13:57:27 2004
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c	Sun Dec 19 22:46:29 2004
@@ -108,7 +108,7 @@
 	int rc = 0;
 
 	jthread_spinon(0);
-	if (stat(path, sb) == -1) {
+	if (lstat(path, sb) == -1) {
 		rc = errno;
 	}
 	jthread_spinoff(0);
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.22 kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.23
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.22	Sun Dec 12 06:52:16 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c	Sun Dec 19 22:46:29 2004
@@ -233,7 +233,7 @@
 {
 	int rc = 0;
 
-	if (stat(path, sb) == -1) {
+	if (lstat(path, sb) == -1) {
 		rc = errno;
 	}
 	return (rc);




More information about the kaffe mailing list