ecryptfs-setup-private fails if GREP_OPTIONS is set with --line-number

Bug #257984 reported by Tyler Willingham
4
Affects Status Importance Assigned to Milestone
eCryptfs
Fix Released
Medium
Dustin Kirkland 
ecryptfs-utils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ecryptfs-utils

if a user has exported GREP_OPTIONS with --line-number, then the query from /etc/passwd for the user's home directory fails. This is due tot he fact that awk is splitting on : with the -F option, and the line number is prepended with a : before the grep line.

The result is the user is presented with an error like the following: "ERROR: User home directory [xxxxx] does not exist".

In order to fix this, something similar to the apache init script could be added, which performs the following:

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"

Changed in ecryptfs-utils:
importance: Undecided → Medium
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Patch attached. Also fixes bug #277343.

:-Dustin

Changed in ecryptfs-utils:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ecryptfs-utils - 53-1ubuntu9

---------------
ecryptfs-utils (53-1ubuntu9) intrepid; urgency=low

  * debian/patches/35-silence_useless_mount_messages.dpatch: silence error
    messages (LP: #277343)
  * debian/patches/40-zero_out_grep_options.dpatch: zero out GREP_OPTIONS
    (LP: #257984)
  * debian/patches/00list: updated accordingly

 -- Dustin Kirkland <email address hidden> Fri, 03 Oct 2008 12:58:21 -0500

Changed in ecryptfs-utils:
status: In Progress → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This patch should be applied to upstream ecryptfs-utils.

:-Dustin

Changed in ecryptfs:
assignee: nobody → kirkland
importance: Undecided → Medium
status: New → In Progress
Changed in ecryptfs:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.