diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-02-15 06:02:40 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-20 23:52:48 +0100 |
commit | f8892b9d087f5c60de663d107643085deaba727b (patch) | |
tree | 92e62c11950ae98b2aca21ed9da8efd65fcde7c8 /lib/libalpm/.gitignore | |
parent | 31d95b867919b02774f4a98b25d2f997c2985600 (diff) | |
download | pacman-f8892b9d087f5c60de663d107643085deaba727b.tar.gz 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/.gitignore')
0 files changed, 0 insertions, 0 deletions