Hi Andrew :)

> > The second patch sanitizes the file names of pid files written by
> > ifupdown and provides the macro %iface_file_name% that provides the
> > interface name sanitized in a way so that it is safe to use as a file
> > name fragment. This is motivated by the fact that on the Hurd network
> > interfaces are made available as files (e. g. /dev/eth0) and so they
> > can contain slashes.
> 
> This is where I did some changes. There's already a feature in
> ifupdown: if you reference a variable as %iface/a/b%, it's value will
> be substituted with the first 'a' changed to 'b'. I have changed the
> behaviour so every occurence is replaced, not just the first one. Also,
> I think using '.' instead of '-' is a bit better, but if you disagree I
> may change it back :)
> 
> > The third patch uses the new %iface_file_name% for pid and dhcp lease
> > file names on the Hurd.
> 
> I've changed this so we use %iface///.%, and added a test case just to
> be sure.

Ah cool, I didn't know that. That's a much nicer solution
indeed. Thanks :)

Justus


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to