Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263091 - sys-apps/findutils-4.5.4: "find . ! -user myself" thinks I don't own newly created files
Summary: sys-apps/findutils-4.5.4: "find . ! -user myself" thinks I don't own newly cr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://savannah.gnu.org/bugs/index.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-20 02:32 UTC by andrei zavada
Modified: 2009-04-02 14:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,4.00 KB, text/plain)
2009-03-20 02:33 UTC, andrei zavada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrei zavada 2009-03-20 02:32:16 UTC
findutils-4.5.4 in Gentoo in current state per submission date, with vanilla kernel 2.6.28.7, reports (find . ! -user myself) a file I have just created as if it was not owned by me.  ls -l clearly says it is owned by me.  Also, it reports as not owned by me some, but not all, seemingly random other preexisting files.


Reproducible: Always

Steps to Reproduce:
1. echo "fafa" >fafa
2. find . ! -user myself.
Actual Results:  
Prints ./fafa, indicating user `myself' doesn't own it.

Expected Results:  
Should be silent.

Neither there are any inconsistencies in manipulating that file (i.e., I can write to it or delete it), nor doing chown myself:myself that_file affects subsequent find results. Reproducible on ext2, ext4 and XFS, on both i686 and x86_64.

The previous version (findutils-4.5.3) works just fine.

I am also submitting a bug report against findutils (http://savannah.gnu.org/bugs/index.php?25933).

Consider it a blocker since thunderbird, which invokes find from its startup script, fails to start saying some files under ~/.thunderbird are not owned by the current user.  Likewise, revdep-rebuild complains about wrong permissions of /var/cache/revdep-rebuild, and refuses to run.
Comment 1 andrei zavada 2009-03-20 02:33:27 UTC
Created attachment 185595 [details]
emerge --info
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2009-03-23 15:14:19 UTC
And another problem which looks very similar:

find /usr/share/fonts/ -type f -a \! -perm 0644 -print

finds files which has permissions 0644. I think we'd better mask this version of findutils currently as this could break lot's of scripts...
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-04-02 11:56:45 UTC
findutils-4.5.4 rebuild fixed this problem for me.
So I think this bug is invalid. 

Just for info. This are toolchain packages I've build after findutils:

Wed Mar 18 10:57:14 2009 >>> sys-apps/findutils-4.5.4
Wed Mar 18 23:11:58 2009 >>> app-shells/bash-4.0_p10-r1
Wed Mar 18 23:32:29 2009 >>> sys-devel/binutils-2.19.1-r1
Thu Mar 19 02:57:12 2009 >>> sys-devel/gcc-4.3.3-r1
Thu Mar 19 03:43:52 2009 >>> sys-libs/glibc-2.9_p20081201-r2

At this point I've checked and findutils were broken then I've emerged another time:

Wed Mar 18 10:57:14 2009 >>> sys-apps/findutils-4.5.4

And they work.

andrei could you confirm that reemerge fixes the problem?
Comment 4 andrei zavada 2009-04-02 14:05:32 UTC
Here confirming that findutils-4.5.4, as emerged yesterday, don't have that bug anymore.  I have no clue what had caused it (my best guess being gnuconfig, which I didn't emerge along with findutils at that time), but it's not really worth the effort to investigate.

So all is well now. Closing the bugreport.