Merge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"

This commit is contained in:
David Turner
2010-03-16 17:25:53 -07:00
committed by Android Code Review

View File

@@ -76,9 +76,9 @@ void __stack_chk_fail(void)
sigprocmask(SIG_BLOCK, &sigmask, NULL); sigprocmask(SIG_BLOCK, &sigmask, NULL);
/* Use /proc/self/exe link to obtain the program name for logging /* Use /proc/self/exe link to obtain the program name for logging
* purposes. If it's not available, we set it to "unknown" */ * purposes. If it's not available, we set it to "<unknown>" */
if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) { if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) {
strlcpy(path, "unknown", sizeof(path)); strlcpy(path, "<unknown>", sizeof(path));
} else { } else {
path[count] = '\0'; path[count] = '\0';
} }