diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org.(none)> | 2005-04-19 13:59:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org.(none)> | 2005-04-19 13:59:17 -0700 |
commit | 7fa6b4e7692926d2d07adee1ef8e277157929058 (patch) | |
tree | 83757dc3185ab31cf3e12c0a67ec191c47e0a478 /init-db.c | |
parent | 8ccfbf3279b07028035aeb58baed5c4a79b63567 (diff) | |
download | git-7fa6b4e7692926d2d07adee1ef8e277157929058.tar.gz git-7fa6b4e7692926d2d07adee1ef8e277157929058.tar.xz |
Fix init-db shared database case
Noted by Aaron Straus
Diffstat (limited to 'init-db.c')
-rw-r--r-- | init-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ int main(int argc, char **argv) sha1_dir = getenv(DB_ENVIRONMENT); if (sha1_dir) { struct stat st; - if (!stat(sha1_dir, &st) < 0 && S_ISDIR(st.st_mode)) + if (!stat(sha1_dir, &st) && S_ISDIR(st.st_mode)) return 0; fprintf(stderr, "DB_ENVIRONMENT set to bad directory %s: ", sha1_dir); } |