]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-file.c
sha1_file: link() returns -1 on failure, not errno
authorThomas Rast <trast@student.ethz.ch>
Thu, 18 Sep 2008 22:24:46 +0000 (00:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Sep 2008 02:51:13 +0000 (19:51 -0700)
commite32c0a9c38a126c9eb8ff8f2fdc1fb8875400bbe
tree5802e0a8311bc0db1e8c6779447735079b58d8d8
parentb99b5b40cffb5269e4aa38b6b60391b55039e27d
sha1_file: link() returns -1 on failure, not errno

5723fe7 (Avoid cross-directory renames and linking on object creation,
2008-06-14) changed the call to use link() directly instead of through a
custom wrapper, but forgot that it returns 0 or -1, not 0 or errno.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c