Bug 50540 - Port print/muttprint ver 0.64 works incorrectly in multiuser environment
Summary: Port print/muttprint ver 0.64 works incorrectly in multiuser environment
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Oliver Braun
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-02 12:30 UTC by Alex Semenyaka
Modified: 2003-04-06 15:33 UTC (History)
0 users

See Also:


Attachments
file.diff (262 bytes, patch)
2003-04-02 12:30 UTC, Alex Semenyaka
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!