projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c53b2c
)
fixed getopt code...
author
tausq
<>
Sat, 16 Oct 1999 19:50:52 +0000
(19:50 +0000)
committer
tausq
<>
Sat, 16 Oct 1999 19:50:52 +0000
(19:50 +0000)
ud-fingerserv
patch
|
blob
|
history
diff --git
a/ud-fingerserv
b/ud-fingerserv
index
7060fa4
..
8822d70
100755
(executable)
--- a/
ud-fingerserv
+++ b/
ud-fingerserv
@@
-1,9
+1,9
@@
#!/usr/bin/perl
#!/usr/bin/perl
-# $Id: ud-fingerserv,v 1.
4 1999/10/16 21:44:30
tausq Exp $
+# $Id: ud-fingerserv,v 1.
5 1999/10/16 21:50:52
tausq Exp $
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
-
#
use lib '/home/randolph/projects/userdir-ldap/web';
+use lib '/home/randolph/projects/userdir-ldap/web';
use strict vars;
#use Apache::Registry;
use IO::Handle;
use strict vars;
#use Apache::Registry;
use IO::Handle;
@@
-16,7
+16,7
@@
use Net::LDAP qw(:all);
# Global settings...
my %config = &Util::ReadConfigFile;
my %opts;
# Global settings...
my %config = &Util::ReadConfigFile;
my %opts;
-getopt("iqh", \%opts);
+getopt
s
("iqh", \%opts);
my $use_inetd = $config{use_inetd} || $opts{i};
$| = 1;
my $use_inetd = $config{use_inetd} || $opts{i};
$| = 1;
@@
-71,7
+71,6
@@
if ($use_inetd == 0) {
$client->close;
}
} else { # inetd
$client->close;
}
} else { # inetd
- $opts{q} = 1; # Temp, until i figure out wth tcpd doesn't pass parameters to this program properly
&log("inetd mode");
my $sockaddr = getpeername(STDIN);
my ($port, $addr) = unpack_sockaddr_in(getpeername(STDIN));
&log("inetd mode");
my $sockaddr = getpeername(STDIN);
my ($port, $addr) = unpack_sockaddr_in(getpeername(STDIN));