cvs commit: ALFS/nALFS/src handlers.c

Kevin P. Fleming kpfleming at
Wed Feb 4 06:32:09 PST 2004

Jamie Bennett wrote:

> At the moment alloc_base_dir_new(element_s *el) (which most handlers use
> now) 
> always allocates a base dir even when a base isn't specified (returns '/' if
> no base is found. Thats why I made alloc_base_dir_force so it could error on
> no <base>. Should we return an error when no base is specified? or return
> '/'?

I've been thinking about this this morning since I knew you would ask... 
I don't think I'd have a problem with _all_ elements that support "base" 
attributes returning an error if there is no base specified at some 
level above them. If someone out there is actually using a profile with 
no top-level base specified, they can always add <base>/</base> or 
<base>.</base> to their top-level <stage>.

More information about the alfs-log mailing list