Ticket #275 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

openntpd.postinst script fails with syntax error

Reported by: anonymous Assigned to: tg
Priority: trivial Milestone: 2.0
Component: rb-2.6 Version: trunk
Keywords: openntpd postinst script Cc: <Default>

Description (Last modified by tg)

hardware: WRT54G v4
trunk #: 2301

the following command sequence yields a syntax error:

root@FreeWRT:~# ipkg remove openntpd
root@FreeWRT:~# vi /etc/passwd (remove ntp line)
root@FreeWRT:~# vi /etc/group (remove ntp line)
root@FreeWRT:~# ipkg install openntpd

Installing openntpd (3.9p1-1) to root...
Downloading http://www.freewrt.org/downloads/1.0/brcm-2.4/packages/./openntpd_3.9p1-1_mipsel.ipk[[BR]] Configuring openntpd
//usr/lib/ipkg/info/openntpd.postinst: //usr/lib/ipkg/info/openntpd.postinst: 23: Syntax error: uid+1
adding user ntp to /etc/passwd
Done.

Subsequent attempts to start the ntpd daemon after the package installation error fails with the msg

"ntpd: unknown user ntp"

Attachments

openntpd.postinst (0.6 kB) - added by anonymous on 04/17/07 19:43:47.

Change History

04/17/07 19:43:47 changed by anonymous

  • attachment openntpd.postinst added.

04/18/07 02:30:36 changed by tg

  • owner changed from wbx to tg.
  • status changed from new to assigned.
  • description changed.

I don't know what your attachement was for, please elaborate.

A possible fix has been committed in r2375, please test. If you weren't an anonymous bug submitter, I had asked you that directly in IRC.

04/22/07 15:28:19 changed by wbx

  • status changed from assigned to closed.
  • resolution set to fixed.

fix in 1.0 branch, too. I have tested it. will be in 1.0.3. thanks for the report

07/08/07 19:12:37 changed by anonymous

  • cc set to <Default>.
  • priority changed from minor to trivial.
  • component changed from general to rb-2.6.
  • milestone set to 2.0.

Add/Change #275 (openntpd.postinst script fails with syntax error)




Action