[rrd-developers] Bug#497739: rrdtool: rrdgraph no longer drops all directories given in filename argument when imginfo string prints

Tobias Oetiker tobi at oetiker.ch
Tue Nov 4 22:59:04 CET 2008

Hi Sebastian,

Today Sebastian Harl wrote:
> What I don't understand though is why '\\' is supposed to mark the
> beginning of the filename. Tobi, is that supposed to take care of
> Windows? In theory, '\\' may be used in filenames on Unix systems, so
> this might behave incorrectly then. Is there any reason why you don't
> use the basename(3) function instead? That's defined in POSIX.1-2001s
> an XSI extension), so it should not cause any problems.

yes the \\ is for our backslashing windows friends ... just read
the basename manpage it sonds scary all the caveats ... do you know
who supports posix.1-2001 ?

If this is widely adoped, it is certainly more elegant tha
implementing it ourselfs.


> TIA,
> Sebastian

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-developers mailing list