summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 303958d)
raw | patch | inline | side by side (parent: 303958d)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 25 Oct 2005 23:41:20 +0000 (01:41 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Oct 2005 06:49:43 +0000 (23:49 -0700) |
FAT -- like Coda -- does not like cross-directory hard links. To be
precise, FAT does not like links at all. But links are not needed either.
So get rid of them.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
precise, FAT does not like links at all. But links are not needed either.
So get rid of them.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
clone-pack.c | patch | blob | history | |
sha1_file.c | patch | blob | history |
diff --git a/clone-pack.c b/clone-pack.c
index 4f4975b4ab7faecb172482f308999e48ea643d37..960921903eaa712523af0b03098970127729f363 100644 (file)
--- a/clone-pack.c
+++ b/clone-pack.c
ifd = fd[0];
snprintf(tmpfile, sizeof(tmpfile),
- "%s/pack-XXXXXX", get_object_directory());
+ "%s/pack/tmp-XXXXXX", get_object_directory());
ofd = mkstemp(tmpfile);
if (ofd < 0)
return error("unable to create temporary file %s", tmpfile);
diff --git a/sha1_file.c b/sha1_file.c
index e45679975e7fcbfae0497f25ab56b6bbd0ff1155..7fdc46969d718096f6492f08489ae20b9693c64b 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
* won't be able to check collisions, but that's not a
* big deal.
*
+ * The same holds for FAT formatted media.
+ *
* When this succeeds, we just return 0. We have nothing
* left to unlink.
*/
- if (ret == EXDEV && !rename(tmpfile, filename))
+ if ((ret == EXDEV || ret == ENOTSUP) && !rename(tmpfile, filename))
return 0;
+ ret = errno;
}
unlink(tmpfile);
if (ret) {