Bug#296111: Inconsistance between manpage and real behavior

2005-02-21 Thread Stefan Hornburg
On Sun, 20 Feb 2005 17:27:39 +0059
Frank Denis \(Jedi/Sector One\) [EMAIL PROTECTED] wrote:

 On Sun, Feb 20, 2005 at 01:18:45PM +0200, Alexander A. Vlasov wrote:
  2.  Create  a  directory  as  described in Anonymous FTP and make a
  symlink called /etc/pure-ftpd/10.11.12.13 which points to this
  directory.
  But in fact pure-ftpd uses /etc/pure-ftpd/pure-ftpd/IP.ADD.RE.SS
 
   The man page describes what happens in the default installation.  
   Debian changed the sysconfdir so the man page can't reflect the reality.
   Or is there a simple way (except ugly hacks through sed) to have
 configuration-dependant parts in man pages?
 

autoconf can be instructed to do replacements on any file, not only
Makefiles and configure scripts.

Bye
Racke



-- 
LinuXia Systems = http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP = http://www.icdevgroup.org/
Interchange Development Team



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#296111: Inconsistance between manpage and real behavior

2005-02-21 Thread Frank Denis (Jedi/Sector One)
On Mon, Feb 21, 2005 at 09:36:51AM +0100, Stefan Hornburg wrote:
 autoconf can be instructed to do replacements on any file, not only
 Makefiles and configure scripts.

  Thank you, Stefan.
  
  I'll have a look at this.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#296111: Inconsistance between manpage and real behavior

2005-02-21 Thread Alexander A. Vlasov
Hello.

No there is no simple ways to change manpage during install, but I can
see at least two ways to fix things:
#1: change manpage included in debian package.
#2 (more elegant, I think): do as apache maintainer did. I.e. create a
symlink ``pure-ftpd - .'' in /etc/pure-ftpd directory. So
/etc/pure-ftpd/pure-ftpd will be the same as /etc/pure-ftpd.

On Sun, Feb 20, 2005 at 05:27:39PM +0059, Frank Denis (Jedi/Sector One) wrote:
 On Sun, Feb 20, 2005 at 01:18:45PM +0200, Alexander A. Vlasov wrote:
 2.  Create  a  directory  as  described in Anonymous FTP and make a
 symlink called /etc/pure-ftpd/10.11.12.13 which points to this
 directory.
 But in fact pure-ftpd uses /etc/pure-ftpd/pure-ftpd/IP.ADD.RE.SS
 
   The man page describes what happens in the default installation.  
   Debian changed the sysconfdir so the man page can't reflect the reality.
   Or is there a simple way (except ugly hacks through sed) to have
 configuration-dependant parts in man pages?
 

-- 
WBR, Alexander A. Vlasov 
 Gala.Net System Administrator
 +38(039)2476081
 nic-hdl:   ZULU-UANIC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#296111: Inconsistance between manpage and real behavior

2005-02-20 Thread Alexander A. Vlasov
Package: pure-ftpd
Version: 1.0.19-4

Looks like pure-ftpd has a small but boring bug with anonymous ftp:
manpage says:
cite
2.  The user connects to an IP address which resolves to the name of a
directory in /etc/pure-ftpd (or a symlink in that directory to a real
directory), and there is an account called ftp (which  does  not  need
to have a valid home directory)
...
2.  Create  a  directory  as  described in Anonymous FTP and make a
symlink called /etc/pure-ftpd/10.11.12.13 which points to this
directory.
/cite

But in fact pure-ftpd uses /etc/pure-ftpd/pure-ftpd/IP.ADD.RE.SS, so
server configured according to manual still doesn't allow anonymouses to
log in. Here is the strace:

[EMAIL PROTECTED]:/etc/pure-ftpd# strace -fp 3733
Process 3733 attached - interrupt to quit
[pid 24702] chdir(/etc/pure-ftpd/pure-ftpd/10.1.0.9) = -1 ENOENT (No such 
file or directory)
   ^ WRONG!
   
[pid 24702] chdir(/home/ftp/) = -1 ENOENT (No such file or directory)
[pid 24702] rt_sigprocmask(SIG_BLOCK, ~[], [CHLD RTMIN], 8) = 0
[pid 24702] write(1, 421 Unable to set up secure anon..., 43) = 43
[pid 24702] time([1108898181])  = 1108898181
[pid 24702] rt_sigaction(SIGPIPE, {0x4025bfd0, [], SA_RESTORER, 0x401b1678}, 
{SIG_IGN}, 8) = 0
[pid 24702] send(3, 91Feb 20 13:16:21 pure-ftpd: (..., 99, 0) = 99
[pid 24702] rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
[pid 24702] rt_sigprocmask(SIG_BLOCK, ~[], ~[KILL STOP], 8) = 0
[pid 24702] munmap(0x40018000, 1440)= 0
[pid 24702] close(4)= 0
[pid 24702] exit_group(-4)  = ?
Process 24702 detached

-- 
WBR, Alexander A. Vlasov 
 Gala.Net System Administrator
 +38(039)2476081
 nic-hdl:   ZULU-UANIC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#296111: Inconsistance between manpage and real behavior

2005-02-20 Thread Frank Denis (Jedi/Sector One)
On Sun, Feb 20, 2005 at 01:18:45PM +0200, Alexander A. Vlasov wrote:
 2.  Create  a  directory  as  described in Anonymous FTP and make a
 symlink called /etc/pure-ftpd/10.11.12.13 which points to this
 directory.
 But in fact pure-ftpd uses /etc/pure-ftpd/pure-ftpd/IP.ADD.RE.SS

  The man page describes what happens in the default installation.  
  Debian changed the sysconfdir so the man page can't reflect the reality.
  Or is there a simple way (except ugly hacks through sed) to have
configuration-dependant parts in man pages?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]