[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-hurd-Patches][311759] [FTBFS] hpsockd 0.17



Patches item #311759, was opened at 2009-06-17 20:32 by Barry deFreese
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410472&aid=311759&group_id=30628

Status: Open
Priority: 3
Submitted By: Barry deFreese (bdefreese)
Assigned to: Nobody (None)
Summary: [FTBFS] hpsockd 0.17 
Category: linuxism
Group: unreviewed
Resolution: None


Initial Comment:
Getting hpsockd to recognize the system is as easy as adding the following to src/Makefile.os:

GNU: Linux

GNU.debug: Linux.debug


However, there is then an unconditional use of MAXPATHLEN.

src/sockd/gram.y:

hostToken:      T_HOST                                  { struct hostent *hp;
                                                          char tmp[MAXPATHLEN];
                                                          register int i;
                                                          gethostname(tmp,sizeof(tmp));
                                                          if ((hp=gethostbyname(tmp))==NULL) {
                                                                syslog(LOG_ERR,"No such host");
                                                                YYABORT;
                                                          }
                                                          NEWLIST($$,*(int*)hp->h_addr_list[0]);
                                                          for (i=1; hp->h_addr_list[i]; i++)
                                                                ADDTOLIST($$,*(int*)hp->h_addr_list[i]);
                                                        }

Why it uses MAXPATHLEN here is beyond me.

Barry

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410472&aid=311759&group_id=30628


Reply to: