[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Cannot change mode for symbolic links with tar 1.26

From: Paul Eggert
Subject: Re: [Bug-tar] Cannot change mode for symbolic links with tar 1.26
Date: Thu, 18 Aug 2011 22:36:01 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110617 Thunderbird/3.1.11

nOn 08/18/2011 05:31 PM, Kevin Day wrote:
> I am using a custom Hardened Linux From Scratch like uClibc based system....
> Attached is my strace

Thanks, the crucial part of that strace seems to be here:

> utimensat(AT_FDCWD, "directory/3", {{1313713307, 205592471}, {1313713243, 
> fchownat(AT_FDCWD, "directory/3", 0, 0, AT_SYMLINK_NOFOLLOW) = 0
> fchmodat(AT_FDCWD, "directory/3", 0777) = -1 ENOENT (No such file or 
> directory)

utimensat and fchownat are being passed the AT_SYMLINK_NOFOLLOW flag,
which is correct, but fchmodat is not being passed a flag.  This
contradicts the POSIX.1-2008 spec for fchmodat

Can you please check <sys/stat.h>'s declaration of fchmodat?  I presume that
it agrees with POSIX (otherwise there would have been a compile-time failure)
but let's make sure.

Most likely your custom kernel and/or C library 1isn't implementing fchmodat
according to POSIX.  Can you please look into that?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]