Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1455656

Re: [PATCH 0077/1285] Replace numeric parameter like 0444 with macro

From Michal Kubecek <mkubecek@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH 0077/1285] Replace numeric parameter like 0444 with macro
Date 2016-08-03 09:30 +0200
Message-ID <s1YMO-7Zf-11@gated-at.bofh.it> (permalink)
References <s1G3x-3Jf-57@gated-at.bofh.it> <s1Jb3-5Jj-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 02, 2016 at 02:42:56PM +0200, Pavel Machek wrote:
> 
> Sorry, the macros just make it _less_ readable, because you do chmod
> 666, not chmod S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH.

Actually, you can do "chmod a=rw ..." or "chmod u=rw,go=r ..." but very
few people use that syntax (the "+" or "-" variants come handy at times,
though).

                                                         Michal Kubecek

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 0077/1285] Replace numeric parameter like 0444 with macro Baole Ni <baolex.ni@intel.com> - 2016-08-02 13:30 +0200
  Re: [PATCH 0077/1285] Replace numeric parameter like 0444 with macro Pavel Machek <pavel@ucw.cz> - 2016-08-02 16:50 +0200
    Re: [PATCH 0077/1285] Replace numeric parameter like 0444 with macro Michal Kubecek <mkubecek@suse.cz> - 2016-08-03 09:30 +0200

csiph-web