"getgrent" call in kernel 2.6.x /perl 5.8.3 ?

M

Michael Faltmann

Can somebody help?Hello NG,

I have a problem here with a perl script which make use of the "getgrent"
system call.
This script has been working perfectly under various kernel revisions,
starting with 2.2.x. After upgrading to 2.6.4 in conjunction with system
update suse9.0 -->suse9.1, however, it fails.

It have the idea I has to with the length of the longest line in "group"
which is some 5000 Bytes long (1500 users approx.) . When I shorten this
line to around 3000 Bytes, the script seems to work.

System: suse9.1
kernel: 2.6.4 / 2.6.5
perl : 5.8.3



The script lines of interest:
-------------------
setgrent;
while (@groups=getgrent) {
$grname{$groups[2]}=$groups[0];
$grmitglieder{$groups[0]}=$groups[3];
$grgid{$groups[0]} = $groups[2];
}

the errormessage simply reads "Out of memory!"


Can somebody help?
MF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top