From: Vitaly Lipatov <LAV@VL3143.spb.edu>
To: mandrake-russian@altlinux.ru
Cc: "Любимов А.В." <avl@l14.ru>
Subject: Re: [mdk-re] mc и umask
Date: Sun Apr 14 14:27:02 2002
Message-ID: <20020414101810.618882A6CF@VL3143.spb.edu> (raw)
In-Reply-To: <20020414131451.06341b8b.avl@l14.ru>
On 14 April 2002 13:14, Любимов А.В. wrote:
> > То есть mc всегда ставит 022. По-моему, это не вполне правильно.
>
> mc ничего ни откуда не берет.
Особенно это видно, когда он в самом начале запуска (если смотреть strace)
делает umask 022. :)
И особенно мне понравился вот этот патч в src.rpm:
--- mc-4.5.54/src/main.c_old Mon Jun 4 14:35:37 2001
+++ mc-4.5.54/src/main.c Mon Jun 4 14:36:29 2001
@@ -3000,6 +3000,8 @@
int
main (int argc, char *argv [])
{
+ umask(umask(077)|022);
+
/* We had LC_CTYPE before, LC_ALL includs LC_TYPE as well */
setlocale (LC_ALL, "");
bindtextdomain ("mc", LOCALEDIR);
Вредители! :)))
> он просто запускает новую копию баша. все переменные снова беруться из
> своих профайлов.
Я понимаю. Но если я просто ещё один bash запускаю, то всё нормально.
И потом, umask ставится только в /etc/profile, а в нём стоит umask 002.
>
> проверте - история команд "в mc" отличается от той, из которой ее
> запустили (хотя тут, может быть и мс вмешивается).
Мне очень давно не нравилось что Нортону для выполнения
команды нужен command.com :), который он каждый раз считывает
с дискеты :)
--
Lav
Виталий Липатов
ФГУП "ЦНИИ Судовой Электротехники и Технологии", Санкт-Петербург
GNU! Linux! LaTeX! LyX!
next prev parent reply other threads:[~2002-04-14 14:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-14 1:22 Vitaly Lipatov
2002-04-14 1:40 ` S. Budnevitch
2002-04-14 10:21 ` Vitaly Lipatov
2002-04-14 13:15 ` Любимов А.В.
2002-04-14 14:27 ` Vitaly Lipatov [this message]
2002-04-15 9:54 ` [mdk-re] " Andrew Borodin
2002-04-14 13:25 ` S. Budnevitch
2002-04-14 13:41 ` Любимов А.В.
2002-04-14 14:50 ` Vitaly Lipatov
2002-04-15 14:12 ` Konstantin Volckov
2002-04-15 22:40 ` Vitaly Lipatov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020414101810.618882A6CF@VL3143.spb.edu \
--to=lav@vl3143.spb.edu \
--cc=avl@l14.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git