Skip to content

Commit

Permalink
i18n: credential-cache--daemon: mark advice for translation
Browse files Browse the repository at this point in the history
Mark permissions_advice for translation.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
vascool authored and gitster committed Oct 17, 2016
1 parent 87cb784 commit af64f20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions credential-cache--daemon.c
Expand Up @@ -219,11 +219,11 @@ static void serve_cache(const char *socket_path, int debug)
close(fd);
}

static const char permissions_advice[] =
static const char permissions_advice[] = N_(
"The permissions on your socket directory are too loose; other\n"
"users may be able to read your cached credentials. Consider running:\n"
"\n"
" chmod 0700 %s";
" chmod 0700 %s");
static void init_socket_directory(const char *path)
{
struct stat st;
Expand All @@ -232,7 +232,7 @@ static void init_socket_directory(const char *path)

if (!stat(dir, &st)) {
if (st.st_mode & 077)
die(permissions_advice, dir);
die(_(permissions_advice), dir);
} else {
/*
* We must be sure to create the directory with the correct mode,
Expand Down

0 comments on commit af64f20

Please sign in to comment.