Bug 50540

Summary: Port print/muttprint ver 0.64 works incorrectly in multiuser environment
Product: Ports & Packages Reporter: Alex Semenyaka <alexs>
Component: Individual Port(s)Assignee: Oliver Braun <obraun>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Alex Semenyaka 2003-04-02 12:30:12 UTC
Muttprint creates a temporary file with the fixed hard-coded name 
``/tmp/muttprint-geometry-ver''. This name as can see does not depends on
the environment muttprint was run (i.e. user id, configuration options and
so on). The main problems that the file is the same for all users. If the port
is used by a user with umask 077, for example, than this will be the only user
(except with root) who will be able to use this port.

Fix: Just form the name of the temporary file on the base of user ID. Since muttprint
is the Perl script the fix is extremely simple:
How-To-Repeat: 
1) install muttprint
2) log in as the user A
3) set up umask 077
4) print anything with muttprint
5) log in as the user B
6) try to print anything with muttprint
Comment 1 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-04-06 14:49:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obraun

Over to maintainer.
Comment 2 Oliver Braun freebsd_committer freebsd_triage 2003-04-06 15:31:47 UTC
State Changed
From-To: open->closed

Committed, thanks!