diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-02-15 00:02:40 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-20 16:52:48 -0600 |
commit | f8892b9d087f5c60de663d107643085deaba727b (patch) | |
tree | 92e62c11950ae98b2aca21ed9da8efd65fcde7c8 /lib/libalpm/handle.c | |
parent | 31d95b867919b02774f4a98b25d2f997c2985600 (diff) | |
download | pacman-f8892b9d087f5c60de663d107643085deaba727b.tar.xz |
util: reduce pointer hell in _alpm_makepath_mode
Simplify the implementation:
- allocate and manipulate a copy of the passed in path rather than
building out a path as the while loop progresses
- use simple pointer arithmetic to skip uninteresting cases
- use mkdir(3)'s return value and errno to detect failure
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
0 files changed, 0 insertions, 0 deletions