[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel
From: |
Arnaud Panaïotis |
Subject: |
bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel |
Date: |
Tue, 19 Apr 2022 09:47:25 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
Hello,
I did not received any feedback from this request right now. Have you
made any progress on this subject ?
Please let me know the progress for this, or contact me for additional
information if needed.
I'd like to have a ticket link to follow the advancement of this issue
(if possible). I'm available to test a patch if you are able to provide
me one.
Best regards,
On 01/04/2022 15:55, Arnaud Panaïotis wrote:
Hello,
I'm working for a client to generate embedded 32-bits Linux Kernel
working after y2038 issue.
I generated a 5.15 Kernel thought Buildroot with Coreutils 9.0, GCC
11.2.0, Binutils 2.37 and CFLAGS -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
The Kernel pass y2038 but I found an issue with cp:
After analysis, the error occurs when trying to move an empty folder
without all user mode rights.
Here how to reproduce:
# mkdir -p test/test1 folder
# chmod u-w test/test1
# date -s "2040-04-02"
# cp -a test/* folder/
cp: setting permissions for 'folder/test1' : Value too large for defined data
type
Note: The folder is copied before the error occurs. The copy works
fine before y2038.
The issue comes from coreutils-9.0/src/cp.c
Line 512 : if (lchmod (dir, stats.st_mode | S_IRWXU) != 0)
FYI I had a previous issue while calling lstat function from
<sys/stat.h> which is included in lib/lchmod.c. I used /usr/bin/stat
as a workaround.
Keep me in touch if you need more information.
--
*Arnaud PANAÏOTIS* | Lead Developer Freelance
+33 6 34 82 12 62 | arnaud.panaiotis@gmx.fr <mailto:Arnaud Panaïotis
<arnaud.panaiotis@gmx.fr>>
18 place Jean Moulin - 38000 Grenoble - France
APsudo - www.panaiotis.fr <https://www.panaiotis.fr>
--
*Arnaud PANAÏOTIS* | Lead Developer Freelance
+33 6 34 82 12 62 | arnaud.panaiotis@gmx.fr <mailto:Arnaud Panaïotis
<arnaud.panaiotis@gmx.fr>>
18 place Jean Moulin - 38000 Grenoble
APsudo - www.panaiotis.fr <https://www.panaiotis.fr>
--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel,
Arnaud Panaïotis <=
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Pádraig Brady, 2022/04/19
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Arnaud Panaïotis, 2022/04/19
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Pádraig Brady, 2022/04/21
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Arnaud Panaïotis, 2022/04/21
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Pádraig Brady, 2022/04/21
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Adhemerval Zanella, 2022/04/22
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Pádraig Brady, 2022/04/21
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Arnaud Panaïotis, 2022/04/26
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Adhemerval Zanella, 2022/04/27
- bug#55023: Issue with CP empty folder after y2038 on 32-bits Kernel, Pádraig Brady, 2022/04/27