path: root/unpack-objects.c
diff options
authorJason Riedy <ejr@EECS.Berkeley.EDU>2006-02-10 01:56:13 (GMT)
committerJunio C Hamano <>2006-02-10 02:38:52 (GMT)
commit67d42212ff104aaafa97b943cb369b8444f61581 (patch)
treebb274c269ed074409f0119690ddf788ee9a1b797 /unpack-objects.c
parentce1610ead63221738225c415300f3d32620ced04 (diff)
stat() for existence in safe_create_leading_directories()
Use stat() to explicitly check for existence rather than relying on the non-portable EEXIST error in sha1_file.c's safe_create_leading_directories(). There certainly are optimizations possible, but then the code becomes almost the same as that in coreutil's lib/mkdir-p.c. Other uses of EEXIST seem ok. Tested on Solaris 8, AIX 5.2L, and a few Linux versions. AIX has some unrelated (I think) failures right now; I haven't tried many recent gits there. Anyone have an old Ultrix box to break everything? ;) Also remove extraneous #includes. Everything's already in git-compat-util.h, included through cache.h. Signed-off-by: Jason Riedy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'unpack-objects.c')
0 files changed, 0 insertions, 0 deletions