Git development
 help / color / mirror / Atom feed
* [PATCH] Do not attempt to access literal dirname "GIT_OBJECT_DIRECTORY".
@ 2005-11-30 15:37 Tommi Virtanen
  0 siblings, 0 replies; only message in thread
From: Tommi Virtanen @ 2005-11-30 15:37 UTC (permalink / raw)
  To: git; +Cc: Tommi Virtanen

Dereference the environment variable before using it.

Signed-off-by: Tommi Virtanen <tv@inoi.fi>

---

 setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: fa10b18d1546129bf73713b64fbc4a8feae3487f
a4a0e60f920f906284f4f6a4d3b4ffb043834bc7
diff --git a/setup.c b/setup.c
index cc44a72..3286a56 100644
--- a/setup.c
+++ b/setup.c
@@ -116,7 +116,7 @@ static const char *setup_git_directory_1
 		if (validate_symref(path))
 			goto bad_dir_environ;
 		if (getenv(DB_ENVIRONMENT)) {
-			if (access(DB_ENVIRONMENT, X_OK))
+			if (access(getenv(DB_ENVIRONMENT), X_OK))
 				goto bad_dir_environ;
 		}
 		else {
---
0.99.9.GIT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-30 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 15:37 [PATCH] Do not attempt to access literal dirname "GIT_OBJECT_DIRECTORY" Tommi Virtanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox