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

Problem creating directories #20

Closed Blain20 closed 5 years ago

Blain20 commented 5 years ago

I'm suddenly having a problem saving using save_object(). It's the line in file.c which says "Cannot create temporary save file "". The path it shows is valid. DGD has no problem writing to disk with write_file(). I don't know if I changed something, but all my code looks good. It behaves the same with version 1.6.3 and 1.6.9 (I have just moved to the latter). I'm using LINUX host option on Cygwin on Win 8.1. I'm not sure where else to look.

Blain20 commented 5 years ago

Update: Win 8.1 somehow garbled permissions for subdirs under /dat/usr/, likely when I had DGD create the subdirs for a new user. I'll try to recreate it again. I fixed the problem by forcing the /dat/ directory's permission setup onto its children recursively.

Blain20 commented 5 years ago

Update: Having DGD create a directory is creating one with misordered permissions, according to Win 8.1. I'm looking into it to see if my perms are confusing it or if it would always do this regardless of my initial setup.

dworkin commented 5 years ago

I'm not sure why the permissions of directories would suddenly be wrong. Is there an older version of DGD that you've used which doesn't have this behaviour?

Blain20 commented 5 years ago

I have never seen this behavior before. I forced perms on the binary and tried it. It's still making weird perms on the new directories, but it's not locking DGD out of write permission during save_object. At this point, I'm laying blame on Windows. DGD should be fine, I suppose. save_object seems to be passing more flags during save_object than write_file, so that made me initially think DGD was being weird. I imagine write_file could be silently failing at times and my lib isn't set up to complain. I guess you can close the issue.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, October 4, 2019 4:57 AM, Felix A. Croes notifications@github.com wrote:

I'm not sure why the permissions of directories would suddenly be wrong. Is there an older version of DGD that you've used which doesn't have this behaviour?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.