version 1.1.1.5, 2013/10/14 07:56:34
|
version 1.1.1.6, 2014/06/15 16:12:54
|
Line 194 expand_iolog_path(const char *prefix, const char *dir,
|
Line 194 expand_iolog_path(const char *prefix, const char *dir,
|
break; |
break; |
case 1: |
case 1: |
/* Trim trailing slashes from dir component. */ |
/* Trim trailing slashes from dir component. */ |
while (dst - path - 1 > prelen && dst[-1] == '/') | while (dst > path + prelen + 1 && dst[-1] == '/') |
dst--; |
dst--; |
/* The NUL will be replaced with a '/' at the end. */ |
/* The NUL will be replaced with a '/' at the end. */ |
if (dst + 1 >= pathend) |
if (dst + 1 >= pathend) |
Line 250 expand_iolog_path(const char *prefix, const char *dir,
|
Line 250 expand_iolog_path(const char *prefix, const char *dir,
|
struct tm *timeptr; |
struct tm *timeptr; |
|
|
time(&now); |
time(&now); |
timeptr = localtime(&now); | if ((timeptr = localtime(&now)) == NULL) |
| goto bad; |
|
|
/* Use sudoers locale for strftime() */ |
/* Use sudoers locale for strftime() */ |
sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale); |
sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale); |