[bf1942] BF1942 linux server 1.45 config opening issues

Scratch Monkey ScratchMonkey at SewingWitch.com
Thu Aug 28 16:37:08 EDT 2003

--On Thursday, August 28, 2003 6:35 PM +0100 Steven Hartland
<killing at barrysworld.com> wrote:

>> Just run the server under strace and see what file it opens.
> lol if its creating the file its opening it dont u think :P

No, I was referring to when it opened it to read it versus when it later opens
it for writing. They might use different name capitalizations.

> linux_open("/usr/compat/linux/usr/games/bf1942/mods/BF1942/2162/Settings/Adm
> inSettings.con",0x1,0600) = 100 (0x64)
> linux_open("/usr/compat/linux/usr/games/bf1942/mods/BF1942/2162/Settings/Adm
> inSettings.con",0x242,0600) = 100 (0x64)

Interesting sequence. Use "man 2 open" to see the syntax for this. The 2nd
argument is the open flags (from /usr/include/bits/fcntl.h) and the 3rd is the
new permissions to use for any newly created file. The first call above opens
AdminSettings.cno for write. The 2nd opens it for mode 0x242 (01102 octal),

More information about the Bf1942 mailing list