Cleanup of large buffer on stack in virFileMakePath
Cleanup of large buffer on stack in virFileMakePath

virFileMakePath is a recursive function that was creates a buffer
PATH_MAX bytes long for each recursion (one recursion for each element
in the path). This changes it to have no buffers on the stack, and to
allocate just one buffer total, no matter how many elements are in the
path. Because the modified algorithm requires a char* to be passed in
rather than const char *, it is now 2 functions - a toplevel API
function that remains identical in function, and a 2nd helper function
called for the recursions, which 1) doesn't allocate anything, and 2)
takes a char* arg, so it can modify the contents.
* src/util/util.c: rewrite virFileMakePath

elmarco/libvirt,iam-TJ/libvirt,dumbbell/libvirt,emaste/libvirt,emaste/libvirt,kantai/libvirt-vfork,emaste/libvirt,emaste/libvirt,kantai/libvirt-vfork,nertpinx/libvirt,fabianfreyer/libvirt,amery/libvirt-vserver,zhlcindy/libvirt-1.1.4-maintain,warewolf/libvirt,rbu/libvirt,wiedi/libvirt,danwent/libvirt-ovs,iam-TJ/libvirt,VenkatDatta/libvirt,elmarco/libvirt,warewolf/libvirt,rbu/libvirt,emaste/libvirt,foomango/libvirt,danwent/libvirt-ovs,shugaoye/libvirt,datto/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,sshah-solarflare/Libvirt-PCI-passthrough-,zippy2/libvirt,jfehlig/libvirt,warewolf/libvirt,taget/libvirt,datto/libvirt,crobinso/libvirt,agx/libvirt,amery/libvirt-vserver,jfehlig/libvirt,rmarwaha/libvirt,emaste/libvirt,wiedi/libvirt,libvirt/libvirt,agx/libvirt,bjzhang/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,datto/libvirt,nertpinx/libvirt,iam-TJ/libvirt,soulxu/libvirt-xuhj,VenkatDatta/libvirt,wiedi/libvirt,rlaager/libvirt,wiedi/libvirt,wiedi/libvirt,wiedi/libvirt,novel/fbsd-libvirt,agx/libvirt,eskultety/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,warewolf/libvirt,usc-isi/libvirt,VenkatDatta/libvirt,soulxu/libvirt-xuhj,dumbbell/libvirt,jeckersb/libvirt,zippy2/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,andreabolognani/libvirt,trainstack/libvirt,elmarco/libvirt,siboulet/libvirt-openvz,leilihh/libvirt,rlaager/libvirt,kantai/libvirt-vfork,nertpinx/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,foomango/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,trainstack/libvirt,libvirt/libvirt,rbu/libvirt,taget/libvirt,dumbbell/libvirt,libvirt/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,rmarwaha/libvirt1,iam-TJ/libvirt,rmarwaha/libvirt,taget/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,bjzhang/libvirt,shugaoye/libvirt,taget/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,foomango/libvirt,soulxu/libvirt-xuhj,jeckersb/libvirt,usc-isi/libvirt,VenkatDatta/libvirt,kantai/libvirt-vfork,fabianfreyer/libvirt,cbosdo/libvirt,rmarwaha/libvirt,emaste/libvirt,rbu/libvirt,dumbbell/libvirt,zhlcindy/libvirt-1.1.4-maintain,amery/libvirt-vserver,novel/fbsd-libvirt,rmarwaha/libvirt1,usc-isi/libvirt,olafhering/libvirt,rmarwaha/libvirt,andreabolognani/libvirt,libvirt/libvirt,nertpinx/libvirt,jardasgit/libvirt,zippy2/libvirt,kantai/libvirt-vfork,jardasgit/libvirt,jeckersb/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,olafhering/libvirt,leilihh/libvirt,leilihh/libvirt,rlaager/libvirt,crobinso/libvirt,elmarco/libvirt,jeckersb/libvirt,warewolf/libvirt,amery/libvirt-vserver,novel/fbsd-libvirt,zippy2/libvirt,jfehlig/libvirt,andreabolognani/libvirt,usc-isi/libvirt,trainstack/libvirt,novel/fbsd-libvirt,rlaager/libvirt,trainstack/libvirt,eskultety/libvirt,siboulet/libvirt-openvz,foomango/libvirt,dumbbell/libvirt,leilihh/libvirt,soulxu/libvirt-xuhj,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,agx/libvirt,rmarwaha/libvirt1,cbosdo/libvirt,foomango/libvirt,amery/libvirt-vserver,rmarwaha/libvirt1,novel/fbsd-libvirt,bjzhang/libvirt,olafhering/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,rmarwaha/libvirt1,datto/libvirt,soulxu/libvirt-xuhj,VenkatDatta/libvirt,eskultety/libvirt,olafhering/libvirt,jeckersb/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,rmarwaha/libvirt1,sshah-solarflare/Libvirt-PCI-passthrough-,rmarwaha/libvirt,nertpinx/libvirt,elmarco/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,trainstack/libvirt,rmarwaha/libvirt,shugaoye/libvirt,shugaoye/libvirt,wiedi/libvirt,jeckersb/libvirt,iam-TJ/libvirt,warewolf/libvirt,eskultety/libvirt,novel/fbsd-libvirt,taget/libvirt,eskultety/libvirt,leilihh/libvirt,warewolf/libvirt,crobinso/libvirt,jardasgit/libvirt,agx/libvirt,fabianfreyer/libvirt,datto/libvirt,leilihh/libvirt,dumbbell/libvirt,cbosdo/libvirt,usc-isi/libvirt,andreabolognani/libvirt,danwent/libvirt-ovs,bjzhang/libvirt,rlaager/libvirt,rbu/libvirt