From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Description of problem: If /etc/aliases file has aliases of form: name: :include:/path then getaliasbyname("name") glibc function causes segmentation fault when reading such alias. Version-Release number of selected component (if applicable): glibc-2.3.4-2.25 How reproducible: Always Steps to Reproduce: 1. Add ":include:" alias to /etc/aliases file, for example: mylist: :include:/etc/mail/mylist 2. Create file /etc/mail/mylist with some entries, for example: root 3. Write, compile and run such C program: #include <aliases.h> #include <stdio.h> int main() { struct aliasent *al = getaliasbyname("mylist"); if (al) puts("Alias OK!"); return 0; } Actual Results: Segmentation fault Expected Results: Alias OK! Additional info: Same result if I use getent: # getent aliases mylist Segmentation fault
Reproduced even in Fedora development.
http://sources.redhat.com/ml/libc-hacker/2006-11/msg00010.html
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0210.html