i18n: credential-cache--daemon: mark advice for translation
Mark permissions_advice for translation. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
87cb7845fe
commit
af64f20b1e
@ -219,11 +219,11 @@ static void serve_cache(const char *socket_path, int debug)
|
|||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char permissions_advice[] =
|
static const char permissions_advice[] = N_(
|
||||||
"The permissions on your socket directory are too loose; other\n"
|
"The permissions on your socket directory are too loose; other\n"
|
||||||
"users may be able to read your cached credentials. Consider running:\n"
|
"users may be able to read your cached credentials. Consider running:\n"
|
||||||
"\n"
|
"\n"
|
||||||
" chmod 0700 %s";
|
" chmod 0700 %s");
|
||||||
static void init_socket_directory(const char *path)
|
static void init_socket_directory(const char *path)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
@ -232,7 +232,7 @@ static void init_socket_directory(const char *path)
|
|||||||
|
|
||||||
if (!stat(dir, &st)) {
|
if (!stat(dir, &st)) {
|
||||||
if (st.st_mode & 077)
|
if (st.st_mode & 077)
|
||||||
die(permissions_advice, dir);
|
die(_(permissions_advice), dir);
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* We must be sure to create the directory with the correct mode,
|
* We must be sure to create the directory with the correct mode,
|
||||||
|
Loading…
Reference in New Issue
Block a user