From owner-cvs-games Sat Feb 1 13:30:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA10383 for cvs-games-outgoing; Sat, 1 Feb 1997 13:30:54 -0800 (PST) Received: (from max@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA10374; Sat, 1 Feb 1997 13:30:52 -0800 (PST) Date: Sat, 1 Feb 1997 13:30:52 -0800 (PST) From: Masafumi NAKANE Message-Id: <199702012130.NAA10374@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-games Subject: cvs commit: src/games/backgammon/backgammon main.c src/games/backgammon/teachgammon teach.c src/games/backgammon/common_source save.c Sender: owner-cvs-games@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk max 97/02/01 13:30:52 Modified: games/backgammon/backgammon main.c games/backgammon/common_source save.c games/backgammon/teachgammon teach.c Log: Instead of swapping ruid and euid before and after touching user's file, simply drop the privilege right after the program is started. Thanks to bde for giving me good suggestion about this problem. Revision Changes Path 1.5 +5 -0 src/games/backgammon/backgammon/main.c 1.4 +0 -4 src/games/backgammon/common_source/save.c 1.5 +7 -0 src/games/backgammon/teachgammon/teach.c