[xorg-bugzilla-noise] [Bug 1083] lndir doesn't handle symlink to directory right

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 15 08:52:52 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1083        
   




------- Additional Comments From hjl at lucon.org  2004-08-15 08:52 -------
This patch fixed the problem for me:

--- xc/config/util/lndir.c.symlink	2004-03-04 09:45:53.000000000 -0800
+++ xc/config/util/lndir.c	2004-08-13 12:43:02.008852729 -0700
@@ -194,7 +194,7 @@ dodir (char *fn,		/* name of "from" dire
 	strcpy (p, dp->d_name);
 
 	if (n_dirs > 0) {
-	    if (stat (buf, &sb) < 0) {
+	    if (lstat (buf, &sb) < 0) {
 		mperror (buf);
 		continue;
 	    }
        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list