]> git.ipfire.org Git - thirdparty/shadow.git/commit
libmisc/copydir.c cleanup
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 27 Dec 2007 23:23:51 +0000 (23:23 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 27 Dec 2007 23:23:51 +0000 (23:23 +0000)
commitdfb6416a5b9fe6f2f31f97d654541ff2dd37b4f0
tree57d72147955cd7e409cd711aa2b5397475a0030b
parentbfa8ef3e75f63f28eff92d12534296047996c53d
libmisc/copydir.c cleanup
* libmisc/copydir.c: Split copy_tree() in more maintainable functions:
copy_entry(), copy_dir(), copy_symlink(), copy_hardlink(),
copy_special(), and copy_file().
* libmisc/copydir.c: -1 is used to indicate an error, directly set err
to -1, instead of incrementing it, and checking if not nul at the
end.
ChangeLog
libmisc/copydir.c