* path.cc (normalize_posix_path): Special care for root directory
in case of files beginning with a dot.
This commit is contained in:
parent
2ef98494d8
commit
46ba13261b
|
@ -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 == '.')
|
||||
{
|
||||
if (dst == dst_start + 1 && *dst_start == '/')
|
||||
--dst;
|
||||
goto sawdot;
|
||||
}
|
||||
if (dst > dst_start && !isslash (dst[-1]))
|
||||
*dst++ = '/';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue