mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
* lib/mc-wrapper.csh.in: Use "id" command to find the real user
id. $USER is not reliable. * lib/mc-wrapper.sh.in: Likewise. Reported by Figura Peter <peterf@autus.sk>
This commit is contained in:
parent
d521073663
commit
807db8eda2
@ -1,3 +1,10 @@
|
||||
2003-08-18 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* lib/mc-wrapper.csh.in: Use "id" command to find the real user
|
||||
id. $USER is not reliable.
|
||||
* lib/mc-wrapper.sh.in: Likewise.
|
||||
Reported by Figura Peter <peterf@autus.sk>
|
||||
|
||||
2003-08-18 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* acinclude.m4 (MC_WITH_NCURSES): Fix ESCDELAY check on Solaris.
|
||||
|
@ -1,7 +1,9 @@
|
||||
set MC_USER="`id | sed 's/[^(]*(//;s/).*//'`"
|
||||
|
||||
if ($?TMPDIR) then
|
||||
setenv MC_PWD_FILE $TMPDIR/mc-$USER/mc.pwd.$$
|
||||
setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
|
||||
else
|
||||
setenv MC_PWD_FILE /tmp/mc-$USER/mc.pwd.$$
|
||||
setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
|
||||
endif
|
||||
|
||||
@bindir@/mc -P "$MC_PWD_FILE" $*
|
||||
|
@ -1,4 +1,5 @@
|
||||
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$USER/mc.pwd.$$"
|
||||
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
|
||||
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
|
||||
@bindir@/mc -P "$MC_PWD_FILE" "$@"
|
||||
|
||||
if test -r "$MC_PWD_FILE"; then
|
||||
|
Loading…
Reference in New Issue
Block a user