Branch: Tag:

2001-09-11

2001-09-11 12:12:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for bug in handling of MKDIR.
Fixes [bug 2249 (#2249)].

Rev: server/modules/filesystems/filesystem.pike:1.110

7:   inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.109 2001/09/03 18:10:23 nilsson Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.110 2001/09/11 12:12:52 grubba Exp $";   constant thread_safe=1;      #include <module.h>
515:       size = _file_size( f, id );    +  FILESYSTEM_WERR(sprintf("_file_size(%O, %O) ==> %d\n", f, id, size)); +     /*    * FIXME: Should probably move path-info extraction here.    * /grubba 1998-08-26
611:    return 0;    }    -  if (size) { +  if (size != -1) {    TRACE_LEAVE("MKDIR failed. Directory name already exists. ");    return 0;    }