Bug 157129

Summary: [maintainer] misc/findutils fix usage of su(1) in gupdatedb
Product: Ports & Packages Reporter: Klaus Aehlig <aehlig>
Component: Individual Port(s)Assignee: Frederic Culot <culot>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-locate__updatedb.sh none

Description Klaus Aehlig 2011-05-17 22:20:08 UTC
	misc/findutils brings a script gupdatedb to update the database for glocate.
        To support restricting the database to only contain readable by a specific
        user (in order to avoid leaking sensitive information from the file structure)
        su(1) is used to call gfind(1). However, the assumption about how to call su(1)
        differs from su(1) as provided by FreeBSD. This has the effect that su(1) fails
        (resulting in an empty database) when a user with nologin as login shell
        is used, like the nobody user.

Fix: add the following patch to the files subdirectory of the port
        and bump PORTREVISION.
How-To-Repeat: 	/usr/local/bin/gupdatedb --localuser=nobody
Comment 1 Frederic Culot freebsd_committer freebsd_triage 2011-05-20 13:07:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->culot

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-05-20 13:21:03 UTC
culot       2011-05-20 12:20:54 UTC

  FreeBSD ports repository

  Modified files:
    misc/findutils       Makefile 
  Added files:
    misc/findutils/files patch-locate__updatedb.sh 
  Log:
  - Add a patch to fix usage of su(1) in the gupdatedb script provided
    with findutils
  - Bump PORTREVISION
  
  PR:             ports/157129
  Submitted by:   Klaus Aehlig <aehlig@linta.de> (maintainer)
  
  Revision  Changes    Path
  1.45      +1 -0      ports/misc/findutils/Makefile
  1.1       +38 -0     ports/misc/findutils/files/patch-locate__updatedb.sh (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Frederic Culot freebsd_committer freebsd_triage 2011-05-20 13:21:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!