From: "S. Budnevitch" <budnevitch@mail.mtu.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] mc и umask Date: Sun Apr 14 13:25:00 2002 Message-ID: <20020414092442.GA2350@israfel.mtu.ru> (raw) In-Reply-To: <20020413221201.74E36555D@VL3143.spb.edu> On Sun, Apr 14, 2002 at 02:12:00AM +0400, Vitaly Lipatov wrote: > > Запускается еще один шелл, который берет umask из /etc/profile, > > если это bash или из /etc/zshrc, если это zsh. Кстати, а что правильнее: устанавливать umask только в login shell или при каждом запуске? > То есть mc всегда ставит 022. По-моему, это не вполне правильно. Это к Константину Волкову, я не понимаю смысл этого патча: $ cat mc-4.5.54-umask.patch --- 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);
next prev parent reply other threads:[~2002-04-14 13:25 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 2002-04-15 9:54 ` [mdk-re] " Andrew Borodin 2002-04-14 13:25 ` S. Budnevitch [this message] 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=20020414092442.GA2350@israfel.mtu.ru \ --to=budnevitch@mail.mtu.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