From: "Slava Semushin" <slava.semushin@gmail.com> To: "ALT Linux Team development discussions" <devel@lists.altlinux.org> Subject: Re: [devel] usermod -m -d ... Date: Tue, 16 Sep 2008 14:18:49 +0700 Message-ID: <75e139a00809160018h646f4494rb283aa6874687c4@mail.gmail.com> (raw) In-Reply-To: <20080916111415.7d1a26ea@batyrshin.ieml.ru> 16 сентября 2008 г. 14:14 пользователь Timur Batyrshin <batyrshin%ieml.ru> написал: > Случайно заглянул в исходники usermod и возник такой вопрос: Ну вы даёте :) [...] > Если не удается создать каталог user_newhome выводится ошибка > об этом, но аварийный выход не осуществляется. Это так и задумано? > > Ведь если указанный каталог не существует (проверка на это проходит > чуть раньше) и его не удается создать, то смысла в chown и последующих > операциях нет. Так если каталог не существует, то ведь и chown, вероятно, не отработает? Вернёт ошибку и уже тогда произойдёт аварийный выход. Хотя более очевидно было бы сделать этот аварийный выход явным IMHO. -- + Slava Semushin | slava.semushin @ gmail.com + ALT Linux Team | php-coder @ altlinux.ru
prev parent reply other threads:[~2008-09-16 7:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-09-16 7:14 Timur Batyrshin 2008-09-16 7:18 ` Slava Semushin [this message]
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=75e139a00809160018h646f4494rb283aa6874687c4@mail.gmail.com \ --to=slava.semushin@gmail.com \ --cc=devel@lists.altlinux.org \ /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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git