unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
[parent not found: <mailman.195.1071679031.868.help-gnu-emacs@gnu.org>]
* GNU emacs locks files modified with CVS
@ 2003-12-15 12:25 Pepijn Kenter
  2003-12-15 18:04 ` Kevin Rodgers
  0 siblings, 1 reply; 13+ messages in thread
From: Pepijn Kenter @ 2003-12-15 12:25 UTC (permalink / raw)


Hi all.

I've got a problem when I use su to log in as another user and try to 
edit a file that is modified in CVS. Let me show you the sequence of 
commands that leads to the problem.

When loged in as user1 type:
su user2
emacs file.pro # edit, exit and save the changes
emacs file.pro # file.pro is now read only.

I can not edit file.pro the second time because it is apperently locked 
by user2 (as shown in the status line? of emacs). File permissions are 
correct and the onwner of file.pro (still) is user2.

After some googling I think the possible cause is that emacs is 
inconsistent in the way it handles the USER and LOGNAME variables.
Indeed USER is set to user2 whereas LOGNAME is still user1. When I 
change LOGNAME to user2 the problem disappears.

So, what to do?
I've found a very old message (1994) with a patch to solve this problem
http://groups.google.nl/groups?q=LOGNAME+USER+emacs&hl=nl&lr=lang_de|lang_en|lang_nl&ie=UTF-8&oe=UTF-8&selm=9402100649.AA13033%40spot.twinsun.com&rnum=1
but I would expect that after all most 10 years the problem had been fixed.

A simpler solution would be to set the LOGNAME variable to user2 
somewhere. I've understood that the differences are mainly historical.
This seems to me an ugly work arround that may leed to problems 
elsewhere, so I prefer a more elegant solution.

Any help would be appriciated.
Pepijn Kenter.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-12-18 17:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.138.1071587578.868.help-gnu-emacs@gnu.org>
2003-12-16 14:51 ` GNU emacs locks files modified with CVS Pepijn Kenter
2003-12-16 16:26   ` gebser
2003-12-17  6:42   ` Maurizio Loreti
2003-12-17 15:34     ` gebser
     [not found] <mailman.195.1071679031.868.help-gnu-emacs@gnu.org>
2003-12-17 16:26 ` Kevin Rodgers
2003-12-17 19:03   ` gebser
2003-12-17 16:41 ` Pepijn Kenter
2003-12-17 17:54 ` Maurizio Loreti
2003-12-18 17:19   ` Kevin Rodgers
2003-12-15 12:25 Pepijn Kenter
2003-12-15 18:04 ` Kevin Rodgers
2003-12-16  9:44   ` Pepijn Kenter
2003-12-16 14:10     ` gebser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).