Subject: bug in 1.7.2 nnrpd.c for hpux
From: John Schmitz <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Wed, 17 Dec 1997 16:55:50 -0800

Hello,

I use hpux 9.04 and the equivalent setproctitle function didn't work in
nnrpd.c.  I have enclosed a patch to fix the problem.

Thanks
John
*** /tmp/,RCSt1a29447	Wed Dec 17 16:49:43 1997
--- nnrpd.c	Wed Dec 17 16:44:45 1997
***************
*** 237,242
      union pstun un;
      
      (void)sprintf(buff, "(nnrpd) %s %s", ClientHost, what);
      (void)pstat(PSTAT_SETCMD, un, strlen(buff), 0, 0);
  #endif	/* defined(HPUX) */
  #endif	/* defined(DO_HAVE_SETPROCTITLE) */

--- 237,243 -----
      union pstun un;
      
      (void)sprintf(buff, "(nnrpd) %s %s", ClientHost, what);
+     un.pst_command = buff;
      (void)pstat(PSTAT_SETCMD, un, strlen(buff), 0, 0);
  #endif	/* defined(HPUX) */
  #endif	/* defined(DO_HAVE_SETPROCTITLE) */