Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 139328 - in.tftp mapping fails with "r rules cannot be inverted"
in.tftp mapping fails with "r rules cannot be inverted"
Product: Fedora
Classification: Fedora
Component: tftp (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-11-15 03:56 EST by Rene Nieuwenhuizen
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-15 05:22:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rene Nieuwenhuizen 2004-11-15 03:56:15 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040803 Firefox/0.9.3

Description of problem:
The tftp-server has problem with mapping. The solution will be
implemented in tftp-0.40 as stated in the following email-excerpt:

I was just trying to upgrade to tftp-hpa-0.39 & my remap file contained 
the following line:

re      .*      \i/\0

This worked with both versions 0.36 & 0.38, but caused the following 
error message with 0.39:

in.tftpd[20958]: [ID 622042 daemon.error] r rules cannot be inverted, 
line 1:    .*      \i/\0

Looking at tftpd/remap.c, it appears that the check that was supposed to 
return true if both RULE_REWRITE & RULE_INVERSE were true actually 
returned true if either were true.  The attached patch fixes that.

David Coulthart
-------------- next part --------------
--- tftpd/remap.c.old	2004-09-15 17:15:17.414542000 -0400
+++ tftpd/remap.c	2004-09-15 17:16:52.331163000 -0400
@@ -234,7 +234,7 @@
   if ( !(r->rule_flags & RULE_REWRITE) )
     r->rule_flags &= ~RULE_GLOBAL;
-  if ( r->rule_flags & (RULE_INVERSE|RULE_REWRITE) ) {
+  if ( (r->rule_flags & RULE_INVERSE) && (r->rule_flags &
     syslog(LOG_ERR, "r rules cannot be inverted, line %d: %s\n",
lineno, line);
     return -1;			/* Error */

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. See description to reproduce

Actual Results:  See description for result

Expected Results:  Should do the remapping

Additional info:
Comment 1 Radek Vokal 2004-11-15 05:22:25 EST
It's time to move on. Tftp is now updated to tftp-0.40-1. Can you
please verify that the bug doesn't apper there. 

Note You need to log in before you can comment on or make changes to this bug.