Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72799 - doomlegacy: permission problem with datadir
Summary: doomlegacy: permission problem with datadir
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-29 03:21 UTC by Andreas Simon
Modified: 2007-02-02 01:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Simon 2004-11-29 03:21:27 UTC
When connecting with doomlegacy to a server via tcp/ip the program exits instantly after conneting.
The error message is "Failed to create file $$$.tmp".
doomlegacy tries to create a temporary file under /usr/share/games/doom-data/.
But only root has write permissions to this directory.

This error doesn't happen in single player mode.



Reproducible: Always
Steps to Reproduce:
1. Connect to a doomlegacy server via something like:
llxdoom -connect 80.138.xx.xx -opengl -IWAD $HOME/wads/Doom2.wad

Actual Results:  
doomlegacy connects to the server but then instantly exists with a error message
saying that it failed to create file $$$.tmp.

Expected Results:  
Able to play the game via internet with some friend.

The fix is to make the dir /usr/share/games/doom-data/ writable by the user
playing the game, i.e. to give the game group writer permission to doom-data.
Comment 1 Andreas Simon 2004-11-29 03:22:59 UTC
Forgot to mention the version of the ebuild:
$ qpkg -I -v doom
games-fps/doomlegacy-1.42
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-08-10 23:02:29 UTC
Hmmmm, is this still a problem?  I don't see the string "Failed to create" in
the source.
Comment 3 Andreas Simon 2005-08-11 05:35:23 UTC
Yes, this issue is still there. I dunno from where the error message comes from,
maybe from some library?

The workaround making /usr/share/games/doom-data writable for the game group
still fixes the issue.

It's probably a design error in the game. It should not write to this wad
directory at all, but use some directory in the user's homedir instead. But it
looks like doomlegacy is not maintained upstream anymore, thus I don't expect a fix.
Comment 4 Tristan Heaven (RETIRED) gentoo-dev 2007-02-02 01:05:09 UTC
Removed from the tree.