Commit Graph

48 Commits (master)

Author SHA1 Message Date
brian m. carlson be6e0daee7 abspath: add a function to resolve paths with missing components 2 years ago
Alexandr Miloslavskiy 4530a85b4c real_path_if_valid(): remove unsafe API 3 years ago
Alexandr Miloslavskiy 3d7747e318 real_path: remove unsafe API 3 years ago
Han-Wen Nienhuys d83d846e84 real_path: clarify return value ownership 5 years ago
Ville Skyttä 6412757514 Spelling fixes 5 years ago
Jeff King af10e8b155 prefix_filename: simplify windows #ifdef 6 years ago
Jeff King e4da43b1f0 prefix_filename: return newly allocated string 6 years ago
Jeff King 116fb64e43 prefix_filename: drop length parameter 6 years ago
Jeff King 598019769c prefix_filename: move docstring to header file 6 years ago
Johannes Schindelin ce83eadd9a real_pathdup(): fix callsites that wanted it to die on error 6 years ago
René Scharfe b1edb40f25 abspath: add absolute_pathdup() 6 years ago
Brandon Williams 0b9864aa28 real_path: set errno when max number of symlinks is exceeded 6 years ago
Brandon Williams 7aeb81f1de real_path: prevent redefinition of MAXSYMLINKS 6 years ago
Johannes Sixt e9a379c352 real_path: canonicalize directory separators in root parts 6 years ago
Brandon Williams 7241764076 real_path: create real_pathdup 6 years ago
Brandon Williams a1ae48410d real_path: convert real_path_internal to strbuf_realpath 6 years ago
Brandon Williams 05b458c104 real_path: resolve symlinks by hand 6 years ago
Johannes Sixt 8e9b20804a Windows: shorten code by re-using convert_slashes() 7 years ago
René Scharfe 679eebe24d abspath: convert absolute_path() to strbuf 8 years ago
René Scharfe 2fdb9ce067 abspath: convert real_path_internal() to strbuf 8 years ago
René Scharfe 251277acdf abspath: use strbuf_getcwd() to remember original working directory 8 years ago
Antoine Pelisse fc2b621454 Prevent buffer overflows when path is too long 9 years ago
Felipe Contreras e46c92e4ef abspath: trivial style fix 9 years ago
Junio C Hamano f1e835fa13 abspath.c: have SP around arithmetic operators 9 years ago
Jonathan Nieder 380395d094 mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIVE 10 years ago
Michael Haggerty e3e46cdbd4 Introduce new function real_path_if_valid() 10 years ago
Michael Haggerty d6052abca3 real_path_internal(): add comment explaining use of cwd 10 years ago
Michael Haggerty 038e55fec2 Introduce new static function real_path_internal() 10 years ago
Michael Haggerty f4c21e89d7 real_path(): properly handle nonexistent top-level paths 10 years ago
Michael Haggerty 3efe5d1d32 real_path(): reject the empty string 10 years ago
Michael Haggerty a0601dc11f absolute_path(): reject the empty string 10 years ago
Dmitry Ivankov 0687628466 Reduce parse-options.o dependencies 11 years ago
Johannes Schindelin 7d092adc8f get_pwd_cwd(): Do not trust st_dev/st_ino blindly 11 years ago
Theo Niessink d1c69255a1 real_path: do not assume '/' is the path seperator 12 years ago
Carlos Martín Nieto e2a57aac8a Name make_*_path functions more accurately 12 years ago
Carlos Martín Nieto 1d679de58e make_absolute_path: return the input path if it points to our buffer 12 years ago
Eric Sunshine b248e95096 Fix 'clone' failure at DOS root directory. 12 years ago
Nguyễn Thái Ngọc Duy ed0cb46ebb make_absolute_path(): Do not append redundant slash 13 years ago
Brandon Casey 1630726e84 abspath.c: move declaration of 'len' into inner block and use appropriate type 13 years ago
Thomas Rast 0721c314a5 Use die_errno() instead of die() when checking syscalls 13 years ago
Junio C Hamano 737e31af7a make_absolute_path(): check bounds when seeing an overlong symlink 14 years ago
Junio C Hamano 90b4a71c49 is_directory(): a generic helper function 14 years ago
Johannes Sixt 10c4c881c4 Allow add_path() to add non-existent directories to the path 14 years ago
Dmitry Potapov 5b8e6f85f9 shrink git-shell by avoiding redundant dependencies 14 years ago