List Info

Thread: Re: build problems




Re: build problems
country flaguser name
Germany
2008-01-04 22:56:32
Ubuntu 7.10 'chmod' report:

$ chmod --version
chmod (GNU coreutils) 5.97
Copyright © 2006 Free Software Foundation, Inc.

$ touch runtime/system.lsp
$ ls -l runtime/system.lsp
-rw-r--r-- 1 edgar edgar 0 2008-01-05 05:09
runtime/system.lsp

$ chmod +w runtime/system.lsp
$ ls -l runtime/system.lsp
-rw-r--r-- 1 edgar edgar 0 2008-01-05 05:09
runtime/system.lsp

$ cp -p sys/unix/linux/system.lsp runtime/system.lsp
$ ls -l runtime/system.lsp
-rwxrwxrwx 1 edgar edgar 2697 2007-07-22 21:46
runtime/system.lsp

$ chmod -w runtime/system.lsp
chmod: runtime/system.lsp: new permissions are r-xrwxrwx,
not r-xr-xr-x
$ ls -l runtime/system.lsp
-r-xrwxrwx 1 edgar edgar 2697 2007-07-22 21:46
runtime/system.lsp

Edgar: 'chmod -w' behaves like 'chmod u-w' (user permissions
only)

If I want to have a result of 'r-xr-xr-x' (group and others
too)
I must write one of these both to make it work:

chmod ugo-w (user, group, others)
chmod a-w (all)

If I change the Makefile to 'chmod a-w' it works.

According to the 'chmod' man page:

If none of [ugoa] are given, the effect is as if 'a' were
given, but bits that are set in the umask are not affected.

umask = 022 (= -rw-r--r--, see 'touch' above)

This could be an explanation, because the 'group' and
'others'
write flags were not set.

- edgar

PS - Java report still to come.


-- 
The author of this email does not necessarily endorse the
following advertisements, which are the sole responsibility
of the advertiser:

____________________________________________________________
_________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten
zu sparen!
http://smartsurfer.web.de/?mc=100071&dis
tributionid=000000000066


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-nyquist mailing list
Audacity-nyquistlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audaci
ty-nyquist

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )