* path.cc (normalize_posix_path): Special care for root directory
in case of files beginning with a dot.
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
Fri Nov 17 12:28:00 2000  Corinna Vinschen <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* path.cc (normalize_posix_path): Special care for root directory
 | 
			
		||||
	in case of files beginning with a dot.
 | 
			
		||||
 | 
			
		||||
Fri Nov 17 12:28:00 2000  Corinna Vinschen <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* syslog.cc (syslog): Add users SID to NT syslog entry.
 | 
			
		||||
 
 | 
			
		||||
@@ -609,7 +609,11 @@ normalize_posix_path (const char *src, char *dst)
 | 
			
		||||
	}
 | 
			
		||||
      dst = strchr (dst, '\0');
 | 
			
		||||
      if (*src == '.')
 | 
			
		||||
	goto sawdot;
 | 
			
		||||
        {
 | 
			
		||||
	  if (dst == dst_start + 1 && *dst_start == '/')
 | 
			
		||||
	     --dst;
 | 
			
		||||
	  goto sawdot;
 | 
			
		||||
        }
 | 
			
		||||
      if (dst > dst_start && !isslash (dst[-1]))
 | 
			
		||||
	*dst++ = '/';
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user