public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW
@ 2022-04-27 12:46 adhemerval.zanella at linaro dot org
  2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-04-27 12:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29097

            Bug ID: 29097
           Summary: fchmodat does not handle 64 bit time_t for
                    AT_SYMLINK_NOFOLLOW
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: adhemerval.zanella at linaro dot org
  Target Milestone: ---

Since Linux fchmodat syscall does not provide a 'flag' argument (to
handle AT_SYMLINK_NOFOLLOW), glibc emulates it through opening a procfs file
descriptor, issuing fstatat to check if it is link (since some kernels and
filesystem it returns in inconsistent results), and then issue chmod.

However, the glibc internal fstat does not use the 64-bit version, which
then results in EOVERFLOW.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-28 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 12:46 [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW adhemerval.zanella at linaro dot org
2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
2022-04-27 17:22 ` adhemerval.zanella at linaro dot org
2022-04-28 13:08 ` adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).