dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

get_dir gets confused if a file has the same name as the directory it is in. #86

Closed knubo closed 8 months ago

knubo commented 8 months ago

It appears that if you do:

get_dir("/players/knubo/tmp")

It will return:

({ /* sizeof() == 1 */
    tmp
}),
({ /* sizeof() == 1 */
    -2
}),
({ /* sizeof() == 1 */
    1705694168
}),

If you add a file called tmp, in this directory, it will start reporting:

({ /* sizeof() == 1 */
    tmp
}),
({ /* sizeof() == 1 */
    0
}),
({ /* sizeof() == 1 */
    1705694493

This appears to be a change from eariler version of DGD. We're currently at 1.7.1 (migrated today) when we found it on connect.vikingmud.org 2001.

Best regads, Knubo

dworkin commented 8 months ago

Should be fixed by 4578348154bfa2994c3d5e051d0c67e885087ca5.

knubo commented 8 months ago

Can confirm that with this patch this get_dir bug is gone.