Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: credential-cache--daemon: mark advice for translation
author
Vasco Almeida
<vascomalmeida@sapo.pt>
Mon, 17 Oct 2016 13:15:28 +0000
(13:15 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Oct 2016 21:51:47 +0000
(14:51 -0700)
Mark permissions_advice for translation.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-cache--daemon.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
87cb784
)
diff --git
a/credential-cache--daemon.c
b/credential-cache--daemon.c
index 1e5f16a3a1272d4a87478525585951d76307750a..46c5937526a53c3563ea47bfba8195bcf9352c35 100644
(file)
--- a/
credential-cache--daemon.c
+++ b/
credential-cache--daemon.c
@@
-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"
"users may be able to read your cached credentials. Consider running:\n"
"\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;
static void init_socket_directory(const char *path)
{
struct stat st;
@@
-232,7
+232,7
@@
static void init_socket_directory(const char *path)
if (!stat(dir, &st)) {
if (st.st_mode & 077)
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,
} else {
/*
* We must be sure to create the directory with the correct mode,