[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cp preserves mode with --no-preserve=mode
From: |
Ondrej Oprala |
Subject: |
cp preserves mode with --no-preserve=mode |
Date: |
Mon, 6 Aug 2012 07:29:17 -0400 (EDT) |
Hi, I'd like to propose a fix for a bug mentioned in the redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=755508
The patch adds another boolean instead of a proposed tristate, thus not
upsetting any existing code.
Also, if the behaviour proposed in the bugzilla entry when --no-preserve=mode
option
is specified is correct, I think the last test in cp/link-preserve should be
changed.
Shouldn't the --no-preserve=mode always create permissions of 0666 & ~umask?
The test
seems to assume that a 0777 & ~umask mode should be set.
Cheers,
Ondrej
DIFF
Description: application/mbox
- cp preserves mode with --no-preserve=mode,
Ondrej Oprala <=
- Re: cp preserves mode with --no-preserve=mode, Jim Meyering, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Pádraig Brady, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Jim Meyering, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Ondrej Oprala, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Bernhard Voelker, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Jim Meyering, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Ondrej Oprala, 2012/08/07
- Re: cp preserves mode with --no-preserve=mode, Bernhard Voelker, 2012/08/07