[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] install: add -C option to install file only when necessary
From: |
Andreas Schwab |
Subject: |
Re: [PATCH] install: add -C option to install file only when necessary |
Date: |
Tue, 17 Feb 2009 13:09:04 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) |
Kamil Dudka <address@hidden> writes:
> On Monday 16 February 2009 15:24:21 Jim Meyering wrote:
>> Please write this as:
>>
>> static bool
>> extra_mode (mode_t mode)
>> {
>> return mode & ~S_IRWXUGO;
>> }
> Slightly changed to deal only with least significant 12bits:
> static bool
> extra_mode (mode_t input)
> {
> const mode_t mask = ~S_IRWXUGO & 0xFFF;
> return input & mask;
> }
Perhaps ~S_IFMT instead of 0xFFF?
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: [PATCH] install: add -C option to install file only when necessary, (continued)
- Re: [PATCH] install: add -C option to install file only when necessary, Kamil Dudka, 2009/02/12
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/12
- Re: [PATCH] install: add -C option to install file only when necessary, Kamil Dudka, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Pádraig Brady, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Kamil Dudka, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Pádraig Brady, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Eric Blake, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/16
- Re: [PATCH] install: add -C option to install file only when necessary, Kamil Dudka, 2009/02/17
- Re: [PATCH] install: add -C option to install file only when necessary,
Andreas Schwab <=
- Re: [PATCH] install: add -C option to install file only when necessary, Kamil Dudka, 2009/02/17
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/17
- Re: [PATCH] install: add -C option to install file only when necessary, Eric Blake, 2009/02/17
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/18
- Re: [PATCH] install: add -C option to install file only when necessary, Eric Blake, 2009/02/18
- Re: [PATCH] install: add -C option to install file only when necessary, Jim Meyering, 2009/02/18