emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14152: closed ([PATCH] build: use 'chmod a-w' inst


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14152: closed ([PATCH] build: use 'chmod a-w' instead of 'chmod -w')
Date: Sun, 07 Apr 2013 01:23:02 +0000

Your message dated Sun, 07 Apr 2013 02:19:25 +0100
with message-id <address@hidden>
and subject line Re: bug#14152: [PATCH] build: use 'chmod a-w' instead of 
'chmod -w'
has caused the debbugs.gnu.org bug report #14152,
regarding [PATCH] build: use 'chmod a-w' instead of 'chmod -w'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14152: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14152
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] build: use 'chmod a-w' instead of 'chmod -w' Date: Sat, 6 Apr 2013 14:23:59 +0200
'chmod -w' is not portable and breaks the build:

| WARNING: Cannot create proper 'hostid.1' man page, since perl is missing or
| WARNING: inadequate on this system.  Creating a stub man page instead.
| chmod: man/hostid.1-t: new permissions are r--rw-r--, not r--r--r--
| make[2]: *** [man/hostid.1] Error 1

Signed-off-by: Enrico Scholz <address@hidden>
---
 man/local.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/local.mk b/man/local.mk
index b5e6e21..53debad 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -192,5 +192,5 @@ man/yes.1:       src/yes
                     --output=$$t/$$name.1 $$t/$$name                   \
          && sed 's|$*\.td/||g' $$t/$$name.1 > address@hidden                   
\
          && rm -rf $$t                                                 \
-         && chmod -w address@hidden                                            
\
+         && chmod a-w address@hidden                                           
\
          && mv address@hidden $@
-- 
1.8.1.4




--- End Message ---
--- Begin Message --- Subject: Re: bug#14152: [PATCH] build: use 'chmod a-w' instead of 'chmod -w' Date: Sun, 07 Apr 2013 02:19:25 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 04/06/2013 11:27 PM, Bob Proulx wrote:
> Pádraig Brady wrote:
>>> -     && chmod -w address@hidden                                            
>>> \
>>> +     && chmod a-w address@hidden                                           
>>> \
>>
>> I'll apply that fix.
> 
> I think it is always a good idea to use 'a' when there isn't any other
> specific reason to do anything different.  Or put the reverse way,
> whenever I see a naken "-[rwx]" then I am suspicious of the action.
> Because it masks with umask and is almost never what is desired.
> 
>> What system does the build fail on as a matter of interest.
> 
> This will occur on any system that has umask set to 022.  Here is an example:
> 
>   $ umask 022
>   $ touch foo
>   $ chmod ug+w foo
>   $ chmod -w foo
>   chmod: foo: new permissions are r--rw-r--, not r--r--r--
>   $ echo $?
>   1

But if the umask is 022, then those write bits shouldn't be set anyway?
You're forcing g+w above.

thanks,
Pádraig.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]