GNU bug report logs -
#15835
[PATCH] chmod: change in the inode's st_ctime
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15835 in the body.
You can then email your comments to 15835 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#15835
; Package
coreutils
.
(Fri, 08 Nov 2013 16:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Guilherme de Almeida Suckevicz <guito.linux <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 08 Nov 2013 16:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
I saw this issue on TODO file:
"Modify chmod so that it does not change an inode's st_ctime
when the selected operation would have no other effect.
First suggested by Hans Ecke <http://hans.ecke.ws> in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/2920
Discussed more recently on <http://bugs.debian.org/497514>."
I made a patch just to chmod, for now, to this issue and I would like
to ask if it need something else or if you can make some comments about
this patch, I really appreciate.
--- src/chmod.c 2013-11-08 10:19:48.608214043 -0200
+++ src/chmod-orig.c 2013-11-08 10:16:30.378505318 -0200
@@ -266,7 +266,7 @@
new_mode = mode_adjust (old_mode, S_ISDIR (old_mode) != 0,
umask_value,
change, NULL);
- if (mode_changed (file, old_mode, new_mode) && ! S_ISLNK (old_mode))
+ if (! S_ISLNK (old_mode))
{
if (chmodat (fts->fts_cwd_fd, file, new_mode) == 0)
chmod_succeeded = true;
I really thank you,
Guilherme Almeida Suckevicz.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#15835
; Package
coreutils
.
(Fri, 08 Nov 2013 17:05:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 15835 <at> debbugs.gnu.org (full text, mbox):
tag 15835 wontfix
close 15835
stop
On 11/08/2013 01:07 PM, Guilherme de Almeida Suckevicz wrote:
> Hello,
>
> I saw this issue on TODO file:
>
> "Modify chmod so that it does not change an inode's st_ctime
> when the selected operation would have no other effect.
> First suggested by Hans Ecke <http://hans.ecke.ws> in
> http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/2920
> Discussed more recently on <http://bugs.debian.org/497514>."
>
> I made a patch just to chmod, for now, to this issue and I would like
> to ask if it need something else or if you can make some comments about
> this patch, I really appreciate.
>
>
> --- src/chmod.c 2013-11-08 10:19:48.608214043 -0200
> +++ src/chmod-orig.c 2013-11-08 10:16:30.378505318 -0200
> @@ -266,7 +266,7 @@
> new_mode = mode_adjust (old_mode, S_ISDIR (old_mode) != 0,
> umask_value,
> change, NULL);
>
> - if (mode_changed (file, old_mode, new_mode) && ! S_ISLNK (old_mode))
> + if (! S_ISLNK (old_mode))
> {
> if (chmodat (fts->fts_cwd_fd, file, new_mode) == 0)
> chmod_succeeded = true;
This has been discussed on and off, most recently at:
http://lists.gnu.org/archive/html/coreutils/2013-10/msg00028.html
The current thought is that it would be best done in the kernel,
as in userspace we haven't visibility of side effects of the call.
thanks,
Pádraig.
Added tag(s) wontfix.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Fri, 08 Nov 2013 19:05:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
15835 <at> debbugs.gnu.org and Guilherme de Almeida Suckevicz <guito.linux <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Fri, 08 Nov 2013 19:05:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 07 Dec 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 157 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.