#48783 Syntax error in ldap/admin/src/scripts/ns-accountstatus.pl.in
Closed: Fixed None Opened 3 years ago by nhosoi.

Opening a ticket on behalf of Andrey Cherepanov "cas@altlinux.ru":
On 03/31/2016 03:46 AM, Andrey Cherepanov wrote:

Our build system detects syntax error in ldap/admin/src/scripts/ns-accountstatus.pl.in:

String found where operator expected at /usr/src/tmp/389-ds-base-buildroot/usr/sbin/ns-accountstatus.pl line 34, near "STDERR " [-i] [-g seconds]\n\n""
(Do you need to predeclare STDERR?)
syntax error at /usr/src/tmp/389-ds-base-buildroot/usr/sbin/ns-accountstatus.pl line 34, near "print"

See attached patch to fix it.

Small note: ldap/admin/src/scripts/db2index.in use Bash4 syntax construction (|&), but use interpreter /bin/sh
Not all Linux distributives have /bin/sh as symlink to /bin/bash4

commit 694a0b613d0c2115fe383ec7dcc52f2ab2cc4af3
Total 7 (delta 5), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
16445ac..10787a0 master -> master

Reviewed and commited. Thanks for the patch Andrey!

Metadata Update from @firstyear:
- Issue set to the milestone:

2 years ago

Login to comment on this ticket.