Commit Briefs

0f71f6196d Stefan Sperling

fix wrong path in a comment


8bd0cdad05 Stefan Sperling

add O_CLOEXEC (close-on-exec) flag to open(2) calls

suggested by millert ok thomas_adam



0c4004e3b4 Stefan Sperling

handle non-const dirname(3) in got_path_dirname()

ok naddy


0a9483d0af Stefan Sperling

handle non-const basename in got_path_basename()

ok millert


20ccae3945 Stefan Sperling

cope with directory entries returned from readdir(3) with type DT_UNKNOWN

Such directory entries need special handling to make our directory traversal code work on filesystems that do not support the d_type optimization. I found this problem because references stored in the refs/ directory were not shown by 'got log' and 'tog log' when a repository is mounted over NFS. helpful feedback + ok millert@




455de7fa2c Theo Buehler

Avoid out of bounds access if path is "/".

From Martin <openbsd () academicsolutions ! ch> with tweaks by me. ok stsp



718ef3e9e8 Stefan Sperling

simplify cleanup code paths in got_path_find_prog()


202329ae1b Stefan Sperling

fix some more occurrences of potential errno clobbering


466d3b326f Stefan Sperling

remove redundant strlen() calls from got_path_cmp()


f2b16adaed Stefan Sperling

cache path length in struct got_pathlist_entry


d572f5860a Stefan Sperling

eliminate strlen() calls during fileindex rb tree searches



f2ea84fab9 Stefan Sperling

make 'got update' accept mulitple path arguments


72ea6654e7 Stefan Sperling

add support for multiple path arguments to 'got status'


49aa539ae9 Stefan Sperling

remove got_path_normalize(); pointless and unused


2c7829a4ca Stefan Sperling

implement 'got init'


0868043076 Stefan Sperling

mention where code for got_path_find_prog() came from


0ee7065d8d Stefan Sperling

make 'got commit' look up EDITOR in PATH

The previous code only worked if EDITOR contained an absolute path.


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


7f2a8dc2cb Stefan Sperling

plug fd leak in got_path_dir_is_empty()