symlink crashes octave if filename is longer than 23 chars

Sergei Steshenko sergstesh at yahoo.com
Wed Aug 13 10:49:31 CDT 2008




--- On Wed, 8/13/08, hwz at hwz.bv.TU-Berlin.DE <hwz at hwz.bv.TU-Berlin.DE> wrote:

> From: hwz at hwz.bv.TU-Berlin.DE <hwz at hwz.bv.TU-Berlin.DE>
> Subject: symlink crashes octave if filename is longer than 23 chars
> To: bug at octave.org
> Cc: hwz at hwz.bv.TU-Berlin.DE
> Date: Wednesday, August 13, 2008, 7:52 AM
> --------
> Bug report for Octave 3.0.1 configured for
> x86_64-unknown-linux-gnu
> 
> Description:
> -----------
> 
> The function symlink crashes octave if the first argument
> (OLD)
> is longer than 23 chars.
> 
> 
> Repeat-By:
> ---------
> 
> Example:
> 
> a="123456789012345678901234";
> b="xxx";
> system(["touch ", a]);
> symlink(a, b)
> 

Works fine for me on 32 bit SUSE-10.3 + self-built octave-3.0.1:

"
GNU Octave, version 3.0.1
Copyright (C) 2008 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i686-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug at octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> a="123456789012345678901234";
octave:2> b="xxx";
octave:3> system(["touch ", a]);
octave:4> symlink(a, b)
ans = 0
octave:5>
".

Regards,
  Sergei.


      


More information about the Bug-octave mailing list